mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-21 20:27:46 +00:00

- /ZI is not a link flag - /ZI is not settable via CMAKE_CXX_FLAGS - /Zi is default unless add_defitions(/ZI)
24 lines
721 B
CMake
24 lines
721 B
CMake
|
|
if(UNIX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
|
else()
|
|
add_definitions(-D_WIN32_WINNT=0x601)
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHc")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
# edit and continue
|
|
message(STATUS "Enabling Edit and Continue..")
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZI")
|
|
add_definitions(/ZI)
|
|
|
|
# incremental linking
|
|
message(STATUS "Enabling Incremental Linking..")
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /INCREMENTAL")
|
|
endif()
|
|
endif()
|
|
|
|
|