Skip to content

Commit

Permalink
fix: disable /Wall for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Sep 22, 2023
1 parent 1cc3286 commit a8a17bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ macro(setup_default_compiler_flags _project_name)
if(MSVC) # That's also clang-cl
# Replace some default compiler switches and add new ones
STRING(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Disable RTTI
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR BUILD_BENCHMARK_EXE)
STRING(REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Enable level 4 warnings
else()
if(MSVC_VERSION GREATER 1920)
Expand Down

0 comments on commit a8a17bc

Please sign in to comment.