File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
6
6
return ()
7
7
endif ()
8
8
9
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
10
+
9
11
include (${CMAKE_CURRENT_LIST_DIR} /CPM.cmake)
10
12
11
13
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ project(GreeterTests LANGUAGES CXX)
5
5
# ---- Options ----
6
6
7
7
option (ENABLE_TEST_COVERAGE "Enable test coverage" OFF )
8
- option (TEST_INSTALLED_VERSION "Test the version found by find_package" OFF )
8
+ option (TEST_INSTALLED_VERSION "Test the version found by find_package" ${PROJECT_IS_TOP_LEVEL} )
9
9
10
10
# --- Import tools ----
11
11
@@ -59,7 +59,7 @@ if(EXISTS ${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
59
59
doctest_discover_tests(${PROJECT_NAME} )
60
60
else ()
61
61
add_test (NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME} )
62
- endif
62
+ endif ()
63
63
64
64
# ---- code coverage ----
65
65
You can’t perform that action at this time.
0 commit comments