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,10 +199,12 @@ unset(_MACHINE_ARCH_FLAG)
|
||||||
# add /debug and /INCREMENTAL:YES to DEBUG and RELWITHDEBINFO also add pdbtype
|
# add /debug and /INCREMENTAL:YES to DEBUG and RELWITHDEBINFO also add pdbtype
|
||||||
# on versions that support it
|
# on versions that support it
|
||||||
set( MSVC_INCREMENTAL_YES_FLAG "")
|
set( MSVC_INCREMENTAL_YES_FLAG "")
|
||||||
if(NOT MSVC_INCREMENTAL_DEFAULT)
|
if(NOT WINDOWS_PHONE AND NOT WINDOWS_STORE)
|
||||||
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
|
if(NOT MSVC_INCREMENTAL_DEFAULT)
|
||||||
else()
|
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
|
||||||
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" )
|
else()
|
||||||
|
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" )
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_COMPILER_SUPPORTS_PDBTYPE)
|
if (CMAKE_COMPILER_SUPPORTS_PDBTYPE)
|
||||||
|
|
Loading…
Reference in New Issue