diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-07-28 14:50:57 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 14:08:54 -0400 |
commit | 1c94558abb653968de6da2cb4672006f31ca0d14 (patch) | |
tree | 63b3267ace4efe9f1a0a806afff2d5e8dfdfd418 /Modules | |
parent | 592098e2d5a00d396e84d7a5e51ae6c550a21fc6 (diff) | |
download | cmake-1c94558abb653968de6da2cb4672006f31ca0d14.tar.gz |
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')
-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 e51c592853..b0d3e49a43 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) |