Skip to content

Commit

Permalink
Disable /sdl and /WX, reinstate /W3
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn authored Jan 30, 2024
1 parent 981f91b commit 2a03b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2a03b91

Please sign in to comment.