Page 1 of 1

CMake and CMAKE_EXPORT_COMPILE_COMMANDS

Posted: Fri Jul 05, 2019 7:03 am
by dale6998
I want CMake to generate compile_commands.json but when I put

Code: Select all

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
in CMakeLists.txt, but I can't get it to output the json file that I need for another tool.

How and where should this setting get invoked within the project examples included with the IDF on GitHub?

Thanks,
--Dale