cmake: Export compile_commands.json as part of build

This commit is contained in:
Angus Gratton
2018-02-09 16:35:35 +08:00
committed by Angus Gratton
parent e94db98e73
commit 04a944598f

View File

@ -28,6 +28,8 @@ macro(idf_set_global_variables)
# path to idf.py tool
set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py")
# generate compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
endmacro()
# Add all the IDF global compiler & preprocessor options