mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
cmake: Export compile_commands.json as part of build
This commit is contained in:
committed by
Angus Gratton
parent
e94db98e73
commit
04a944598f
@@ -28,6 +28,8 @@ macro(idf_set_global_variables)
|
|||||||
# path to idf.py tool
|
# path to idf.py tool
|
||||||
set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py")
|
set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py")
|
||||||
|
|
||||||
|
# generate compile_commands.json
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# Add all the IDF global compiler & preprocessor options
|
# Add all the IDF global compiler & preprocessor options
|
||||||
|
Reference in New Issue
Block a user