Skip to content

Commit 0adc886

Browse files
committed
chore(cmake): add export compile commands
By default enabled. Useful for IDE supporting this. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 46d4cc5 commit 0adc886

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cmake/templates/easy_cmake.cmake‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ set(BOARDNAME "{{boardname or "@board_name_here@"}}")
1818

1919
list(APPEND CMAKE_MODULE_PATH {{"${CORE_PATH}"}}/cmake)
2020
set(CMAKE_TOOLCHAIN_FILE toolchain)
21+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2122

2223

2324
# This block can be removed when using this file as the sketch's CMakeLists.txt

0 commit comments

Comments
 (0)