1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 13:41:13 +02:00

Set CMAKE_EXPORT_COMPILE_COMMANDS too

This commit is contained in:
ClausKlein 2025-03-06 07:14:51 +01:00
parent a3bc933175
commit 95470160d8
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
return()
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,

View file

@ -59,7 +59,7 @@ if(EXISTS ${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
doctest_discover_tests(${PROJECT_NAME})
else()
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
endif
endif()
# ---- code coverage ----