diff options
author | Patrick Gansterer <paroga@paroga.com> | 2012-11-30 13:14:27 (GMT) |
---|---|---|
committer | Patrick Gansterer <paroga@paroga.com> | 2012-11-30 13:14:27 (GMT) |
commit | 5bf9fd8253ec804498c0f3339c4d706cab3673ea (patch) | |
tree | 58177a16ff10cb997ac43bce1cdb18ad00b93b33 /Modules/CMakeDetermineCompilerId.cmake | |
parent | e0af55a5f4cd84db1cc5a3517e730ea8c6332f45 (diff) | |
download | CMake-5bf9fd8253ec804498c0f3339c4d706cab3673ea.zip CMake-5bf9fd8253ec804498c0f3339c4d706cab3673ea.tar.gz CMake-5bf9fd8253ec804498c0f3339c4d706cab3673ea.tar.bz2 |
VS: Set the correct SubSystem when determinating the CompilerId
Some WinCE linker only work when the subsystem is set to WINDOWSCE.
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 43469ea..40e4f5a 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -142,6 +142,9 @@ Id flags: ${testflags} endif() if(CMAKE_VS_WINCE_VERSION) set(id_definitions "ADD_MAINCRTSTARTUP") + set(id_subsystem 9) + else() + set(id_subsystem 1) endif() if("${CMAKE_MAKE_PROGRAM}" MATCHES "[Mm][Ss][Bb][Uu][Ii][Ll][Dd]") set(build /p:Configuration=Debug /p:Platform=@id_arch@ /p:VisualStudioVersion=${vs_version}.0) |