[CMake] How to get list of target dependencies?
Robert Dailey
rcdailey.lists at gmail.com
Thu May 4 11:47:27 EDT 2017
Forgot to mention, I'm using CMake 3.8.1
On Thu, May 4, 2017 at 10:47 AM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> How can I get a list of target dependencies of a target? For example,
> if I have 3 library targets that depend on each other like this:
>
> A -> B -> C
>
> When I ask for the target dependencies for A, I should get a list back
> with B in it. Basically this would be the same list I pass to
> target_link_libraries(), minus actual library files with no
> corresponding target known to CMake.
>
> I see a LINK_DEPENDS target property. Is this what I want?
More information about the CMake
mailing list