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.li...@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. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers