CMake and CMAKE_EXPORT_COMPILE_COMMANDS

dale6998
Posts: 1
Joined: Fri Jul 05, 2019 6:59 am

CMake and CMAKE_EXPORT_COMPILE_COMMANDS

Postby dale6998 » Fri Jul 05, 2019 7:03 am

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

Who is online

Users browsing this forum: Google [Bot] and 67 guests