CMAKE_EXPORT_COMPILE_COMMANDS does not work
I am compiling some CMake based code using colcon build. In order to enjoy the coding process using CLion, I need to generate compile commands. When I try to use arg:
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
I get the warning that this command is being ignored:
Manually-specified variables were not used by the project:
CMAKE_EXPORT_COMPILE_COMMANDS
What can be done? I am using MacOS Big Sur 11.0 and CMake version 3.19.1