mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
Add MSVC optimization flags
This commit is contained in:
parent
a0d51e21ca
commit
2239507d3c
@ -68,8 +68,8 @@ if(UNIX)
|
|||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC")
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
# Skip warning for invalid conversion from size_t to uint32_t for all targets below for now
|
# Set MSVC-specific optimization flags and skip warning for invalid conversion from size_t to uint32_t for all targets below
|
||||||
add_compile_options("/wd4267" "/utf-8")
|
add_compile_options("/O2" "/Zc:inline" "/wd4267" "/utf-8")
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user