MSVC: Disable incremental linking for WindowsPhone and WindowsStore
Do not add a "/INCREMENTAL" flag when using the toolchains for these systems.
This commit is contained in:
parent
592098e2d5
commit
1c94558abb
|
@ -199,11 +199,13 @@ unset(_MACHINE_ARCH_FLAG)
|
|||
# add /debug and /INCREMENTAL:YES to DEBUG and RELWITHDEBINFO also add pdbtype
|
||||
# on versions that support it
|
||||
set( MSVC_INCREMENTAL_YES_FLAG "")
|
||||
if(NOT WINDOWS_PHONE AND NOT WINDOWS_STORE)
|
||||
if(NOT MSVC_INCREMENTAL_DEFAULT)
|
||||
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
|
||||
else()
|
||||
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CMAKE_COMPILER_SUPPORTS_PDBTYPE)
|
||||
set (CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "/debug /pdbtype:sept ${MSVC_INCREMENTAL_YES_FLAG}")
|
||||
|
|
Loading…
Reference in New Issue