We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08fabaf commit 2fbd0cfCopy full SHA for 2fbd0cf
1 file changed
tests/CMakeLists.txt
@@ -111,6 +111,16 @@ if(TE_BUILD_TEST_RUNNER)
111
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX /wd4554
112
$<$<CONFIG:Debug>:/Od> $<$<CONFIG:Release>:/O2>)
113
endif()
114
+ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
115
+ target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC
116
+ -Wall -Wextra -Wpedantic -Wshadow -Werror
117
+ $<$<CONFIG:Debug>:-O0 -g>
118
+ $<$<CONFIG:Release>:-O3>)
119
+ if(USE_ADDRESS_SANITIZE)
120
121
+ -fsanitize=address -fno-omit-frame-pointer)
122
+ target_link_options(${CMAKE_PROJECT_NAME} PUBLIC -fsanitize=address)
123
+ endif()
124
125
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Catch2::Catch2)
126
0 commit comments