[CMake] Make CMAKE_EXPORT_COMPILE_COMMANDS not default?

René J.V. Bertin rjvbertin at gmail.com
Sat Jan 9 05:13:20 EST 2016


Hello,

Sorry for reviving an old thread (https://cmake.org/pipermail/cmake/2013-December/056517.html) but it seems to have died without a proper answer, at least one that I could find.

I'd like to offer an additional reason why CMAKE_EXPORT_COMPILE_COMMANDS would be beneficial if on by default, one that apparently didn't come up.
IDEs like KDevelop and QtCreator use this option to know the layout/contents of a project. They will add it to the cmake invocation when you create a new build directory for said project. However, they can also be pointed to an already existing build directory, in which case it'd be preferable if they didn't have to run cmake again (neither IDE has the option to run cmake under the kind of strictly controlled environment that might be required to configure it "just right").

Regards,
René



More information about the CMake mailing list