Enabling CMAKE_EXPORT_COMPILE_COMMANDS causes CMake to emit
compile_commands.json, to be picked up by llvm tools or other custom stuff.
This is very useful.

Can we also have a link_commands.json that records the link commands that
produce each target? That would allow a whole new set of validation to be
performed on the structure of the build and the linking arrangements.

I am trying to perform some of those validations on some large CMake
projects but it's hard at the moment - I either have to try to explore the
situation within CMake, or parse the generated build files, or parse the
verbose build output - none of which is working very well!

I am willing to try implementing this feature myself, if it's considered
potentially useful and doesn't overlap with ongoing work or something.

Any thoughts?

Dave
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to