diff --git a/CMakeLists.txt b/CMakeLists.txt index c8da1d2f..c54ad568 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)