[cmake-developers] How to obtain a list of target dependencies
rcdailey.lists at gmail.com
Mon Mar 12 16:11:28 EDT 2018
I'm going to add the CMake Dev group as well, since I asked this same
question last year around May and I didn't get any response. Hoping
for some help this time around. I don't see anything documented, so
maybe the developers know the best approach here.
On Mon, Mar 12, 2018 at 3:03 PM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> Sometimes I need to manually take action on the dependencies of my
> targets. Without keeping track of the dependencies externally using
> global or custom target properties, is there a way to obtain the list
> of targets that a target depends on? This would be the same list of
> targets passed to `target_link_libraries()`. For bonus points I'd like
> a flattened list of transitive dependencies, to avoid recursively
> building this list myself.
More information about the cmake-developers