mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
Correctly applying /ZI for debug
- /ZI is not a link flag - /ZI is not settable via CMAKE_CXX_FLAGS - /Zi is default unless add_defitions(/ZI)
This commit is contained in:
parent
9065b4ccea
commit
08366ae11c
1 changed files with 7 additions and 2 deletions
|
@ -9,10 +9,15 @@ else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||||
|
|
||||||
# edit and continue
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
# edit and continue
|
||||||
message(STATUS "Enabling Edit and Continue..")
|
message(STATUS "Enabling Edit and Continue..")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /INCREMENTAL /ZI")
|
#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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue