Hi all, How can I get a full compiler command line for a given target in CMakeLists project? I want to run Clang-based tool on some targets (using CTest), and it requires same options as used during compilation.
I know there is CMAKE_EXPORT_COMPILE_COMMANDS but it is not taget-specific. There is a similar question on stackoverflow: https://stackoverflow.com/questions/35808209/get-full-c-compiler-command-line Here author suggets to use get_target_property on a target. I've tried this, but it does not work when some properties are inherited from libraries (for example include paths). Do you have any ideas? Thanks, Roman
-- 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