robotology / ycm-cmake-modules

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

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

Closed traversaro closed 6 months ago

traversaro commented 6 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.