feat(cmakev2/idf): enable the generation of compile_commands.json

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-11-04 07:48:12 +01:00
parent c44f4eefbb
commit c5567ff692
+3
View File
@@ -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()