File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ function(set_project_warnings project_name)
7979
8080 if (MSVC )
8181 set (PROJECT_WARNINGS ${MSVC_WARNINGS} )
82- elseif (CMAKE_CXX_COMPILER_ID STREQUAL " Clang" )
82+ elseif (CMAKE_CXX_COMPILER_ID MATCHES ".* Clang" )
8383 set (PROJECT_WARNINGS ${CLANG_WARNINGS} )
8484 else ()
8585 set (PROJECT_WARNINGS ${GCC_WARNINGS} )
Original file line number Diff line number Diff line change 11function (enable_sanitizers project_name )
22
3- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL
4- "Clang" )
3+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
4+ ".* Clang" )
55 option (ENABLE_COVERAGE "Enable coverage reporting for gcc/clang" FALSE )
66
77 if (ENABLE_COVERAGE)
Original file line number Diff line number Diff line change 88
99add_library (catch_main STATIC catch_main.cpp)
1010target_link_libraries (catch_main PUBLIC CONAN_PKG::catch2)
11+ target_link_libraries (catch_main PRIVATE project_options)
1112
1213add_executable (tests tests.cpp)
1314target_link_libraries (tests PRIVATE project_warnings project_options
You can’t perform that action at this time.
0 commit comments