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:
Gilles Khouzam 2014-07-28 14:50:57 -04:00 committed by Brad King
parent 592098e2d5
commit 1c94558abb
1 changed files with 6 additions and 4 deletions

View File

@ -199,10 +199,12 @@ 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 MSVC_INCREMENTAL_DEFAULT)
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES")
else()
set( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" )
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)