diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 22ed4024..e1a29723 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -658,8 +658,8 @@ macro(setup_compile_flags) if(NOT MSVC_VERSION LESS 1910) add_compile_flags("CXX" "/Zc:__cplusplus") endif() - add_compile_flags("C;CXX" "/W4") - add_compile_flags("C;CXX" "/utf-8") + remove_compile_flag("C;CXX" "/W3") + add_compile_flags("C;CXX" "/W4 /utf-8") else() if(CC_HAS_WALL) add_compile_flags("C;CXX" "-Wall")