diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-12-09 18:32:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-12-09 18:32:48 (GMT) |
commit | cddcad51020d42bbc321f45507a4649b1842aba4 (patch) | |
tree | 41f3186dcd9ab47b701c2102f0b916a071bd2855 /Modules/Platform/Windows-cl.cmake | |
parent | c300ef1c66eafcae3b4ef05f2ec27768feb1e280 (diff) | |
download | CMake-cddcad51020d42bbc321f45507a4649b1842aba4.zip CMake-cddcad51020d42bbc321f45507a4649b1842aba4.tar.gz CMake-cddcad51020d42bbc321f45507a4649b1842aba4.tar.bz2 |
Fix incremental linking for VS2010 with nmake or make.
VS2010 deprecated /INCREMENTAL:YES. This change makes
/INCREMENTAL the flag to use for incremental linking with
VS2010.
Diffstat (limited to 'Modules/Platform/Windows-cl.cmake')
-rw-r--r-- | Modules/Platform/Windows-cl.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index 7463c62..56582ff 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -212,6 +212,8 @@ SET (CMAKE_EXE_LINKER_FLAGS_INIT SET( MSVC_INCREMENTAL_YES_FLAG "") IF(NOT MSVC_INCREMENTAL_DEFAULT) SET( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL:YES") +ELSE() + SET( MSVC_INCREMENTAL_YES_FLAG "/INCREMENTAL" ) ENDIF() IF (CMAKE_COMPILER_SUPPORTS_PDBTYPE) |