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)
1212
1313set (CMAKE_C_STANDARD 11)
1414set (CMAKE_C_STANDARD_REQUIRED ON )
15+ set (CMAKE_CXX_STANDARD 17)
16+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
1517set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
1618
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" )
1820SET (GCC_COVERAGE_LINK_FLAGS "--coverage" )
21+
22+ if (CMAKE_GENERATOR MATCHES "Unix Makefiles" )
23+
1924SET (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
2025SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS} " )
2126SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
2227
28+ SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS} " )
29+
30+ endif ()
31+
2332add_subdirectory (src/lib/exercises)
2433
2534if (BUILD_TESTING)
You can’t perform that action at this time.
0 commit comments