Skip to content

Commit 9547016

Browse files
committed
Set CMAKE_EXPORT_COMPILE_COMMANDS too
1 parent a3bc933 commit 9547016

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmake/tools.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
66
return()
77
endif()
88

9+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
10+
911
include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
1012

1113
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if(EXISTS ${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
5959
doctest_discover_tests(${PROJECT_NAME})
6060
else()
6161
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
62-
endif
62+
endif()
6363

6464
# ---- code coverage ----
6565

0 commit comments

Comments
 (0)