diff options
author | Chris Robinson <[email protected]> | 2020-10-26 10:46:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-26 10:47:31 -0700 |
commit | 9e7c81649869432f99f8fd4780af1dbda007a219 (patch) | |
tree | 0284b1996ba91fb3e1b7e31f42166d9d1b5188af /CMakeLists.txt | |
parent | 36ecea458a5625df0e07dc4f6fb1c1280d348b3a (diff) |
Fix copy-paste error
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ae87cbe..f3c3a317 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,10 +210,10 @@ if(MSVC) set(C_FLAGS ${C_FLAGS} $<$<COMPILE_LANGUAGE:CXX>:/permissive->) endif() set(C_FLAGS ${C_FLAGS} /W4 /w14640 /wd4065 /wd4268 /wd4324 /wd5030) - # Remove /W3, which is added by default, since we set /W4. Some versions of - # MSVC complain about both /W3 and /W4 being specified. + # Remove /W3, which is added by default, since we set /W4. Some build + # generators with MSVC complain about both /W3 and /W4 being specified. foreach(flag_var CMAKE_C_FLAGS CMAKE_CXX_FLAGS) - if(${flag_var} MATCHES "-DNDEBUG") + if(${flag_var} MATCHES "/W3") string(REGEX REPLACE "/W3" "" ${flag_var} "${${flag_var}}") endif() endforeach() |