mdbx-cmake: removing /W3 when adding /W4 to avoid stupid MSVC warnings.

This commit is contained in:
Leonid Yuriev 2022-03-28 23:08:10 +03:00 committed by Леонид Юрьев (Leonid Yuriev)
parent 57978b0f7f
commit cf32f4cdb3

View File

@ -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")