diff options
author | Patrick Gansterer <paroga@paroga.com> | 2013-09-25 03:25:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-09-25 12:29:03 (GMT) |
commit | 8bb3b3d344b6bf49bf5ba05fa90faedce72378a5 (patch) | |
tree | 8a96af2596f04c98473c9b5756d998bfd31d9352 | |
parent | faef6b4ec8141b0a3458a4c9af0136b77581ea71 (diff) | |
download | CMake-8bb3b3d344b6bf49bf5ba05fa90faedce72378a5.zip CMake-8bb3b3d344b6bf49bf5ba05fa90faedce72378a5.tar.gz CMake-8bb3b3d344b6bf49bf5ba05fa90faedce72378a5.tar.bz2 |
VS: Use version-specific subsystem for WinCE compiler id (#14440)
The subsystem must be set to WINDWOSCE for some SDKs to link an
executable. Set it to 9 for VS2005 and to 8 for VS2008, since the
value differs between the different Visual Studio versions.
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index ebd9ce0..8ca5334 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -133,7 +133,11 @@ Id flags: ${testflags} endif() if(CMAKE_VS_WINCE_VERSION) set(id_entrypoint "mainACRTStartup") - set(id_subsystem 9) + if("${vs_version}" VERSION_LESS 9) + set(id_subsystem 9) + else() + set(id_subsystem 8) + endif() else() set(id_subsystem 1) endif() |