diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-07-28 18:50:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:08:54 (GMT) |
commit | 1c94558abb653968de6da2cb4672006f31ca0d14 (patch) | |
tree | 63b3267ace4efe9f1a0a806afff2d5e8dfdfd418 /Modules/Platform/Windows-MSVC.cmake | |
parent | 592098e2d5a00d396e84d7a5e51ae6c550a21fc6 (diff) | |
download | CMake-1c94558abb653968de6da2cb4672006f31ca0d14.zip CMake-1c94558abb653968de6da2cb4672006f31ca0d14.tar.gz CMake-1c94558abb653968de6da2cb4672006f31ca0d14.tar.bz2 |
MSVC: Disable incremental linking for WindowsPhone and WindowsStore
Do not add a "/INCREMENTAL" flag when using the toolchains for these
systems.
Diffstat (limited to 'Modules/Platform/Windows-MSVC.cmake')
-rw-r--r-- | Modules/Platform/Windows-MSVC.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake index e51c592..b0d3e49 100644 --- a/Modules/Platform/Windows-MSVC.cmake +++ b/Modules/Platform/Windows-MSVC.cmake @@ -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) |