File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,23 @@ include(CTest)
12
12
13
13
set (CMAKE_C_STANDARD 11 )
14
14
set (CMAKE_C_STANDARD_REQUIRED ON )
15
+ set (CMAKE_CXX_STANDARD 17 )
16
+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
15
17
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
16
18
17
- SET (GCC_COVERAGE_COMPILE_FLAGS "-fprofile-arcs -ftest-coverage -g -O0" )
19
+ SET (GCC_COVERAGE_COMPILE_FLAGS "-fsanitize=address - fprofile-arcs -ftest-coverage -g -O0" )
18
20
SET (GCC_COVERAGE_LINK_FLAGS "--coverage" )
21
+
22
+ if (CMAKE_GENERATOR MATCHES "Unix Makefiles" )
23
+
19
24
SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
20
25
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
21
26
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
22
27
28
+ SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
29
+
30
+ endif ()
31
+
23
32
add_subdirectory (src/lib/exercises )
24
33
25
34
if (BUILD_TESTING )
You can’t perform that action at this time.
0 commit comments