mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 06:57:28 +00:00
disable /WX on MSVC
This commit is contained in:
parent
24d3bc0ce6
commit
7eae64f8a6
@ -253,7 +253,7 @@ endif()
|
|||||||
|
|
||||||
# Set warning flags
|
# Set warning flags
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options("/WX")
|
add_compile_options("/W4")
|
||||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
||||||
add_compile_options("-Wuninitialized" "-Wold-style-cast" "-Werror")
|
add_compile_options("-Wuninitialized" "-Wold-style-cast" "-Werror")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user