mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
feat(cmakev2/idf): enable the generation of compile_commands.json
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -463,6 +463,9 @@ idf_build_set_property(PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
# Set build directory property.
|
||||
idf_build_set_property(BUILD_DIR "${CMAKE_BINARY_DIR}")
|
||||
|
||||
# Enable the generation of compile_commands.json.
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Initialize IDF_PATH and set it as a global and environmental variable, as
|
||||
# well as a build property.
|
||||
__init_idf_path()
|
||||
|
||||
Reference in New Issue
Block a user