robotology / ycm-cmake-modules

YCM (YCM CMake modules) is a collection of various useful CMake modules.
http://robotology.github.io/ycm-cmake-modules
Other
52 stars 23 forks source link

YCMEPHelper: If CMAKE_EXPORT_COMPILE_COMMANDS is defined and ON, pass it to all subprojects #442

Closed traversaro closed 9 months ago

traversaro commented 9 months ago

Fix part of https://github.com/robotology/robotology-superbuild/issues/1596 . As discussed in https://github.com/robotology/robotology-superbuild/issues/1596 one could use the CMAKE_EXPORT_COMPILE_COMMANDS environment variable, but this has the downside that is considered only if the build is created from zero, and it has no effects on existing builds.