build: enable severe warnings for MSVC release
Enable severe warnings for MSVC release builds with /W1. Disable macro redefinition warnings explicitly with /wd4005. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
0a96d84581
commit
3989146fa5
|
@ -814,7 +814,9 @@ elseif(MSVC)
|
|||
|
||||
add_compiler_flags(${runtime} /ZI /W4 /Ob0 /Od /RTC1 /DDEBUG /EHsc)
|
||||
else()
|
||||
add_compiler_flags(/w /DNDEBUG /EHsc)
|
||||
# Enable severe warnings for release builds, but suppress macro
|
||||
# redefinition warnings.
|
||||
add_compiler_flags(/W1 /wd4005 /DNDEBUG /EHsc)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||
if(X86_32)
|
||||
|
|
Loading…
Reference in New Issue