diff --git a/CMakeLists.txt b/CMakeLists.txt index c76394eac..bdad282b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ if(UNIX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC") elseif(MSVC) # Set MSVC-specific optimization flags and skip warning for invalid conversion from size_t to uint32_t for all targets below - add_compile_options("/GS" "/permissive-" "/WX" "/sdl" "/wd4267" "/utf-8") + add_compile_options("/GS" "/permissive-" "/W3" "/wd4267" "/utf-8") elseif(WIN32) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif()