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.
This commit is contained in:
Patrick Gansterer 2013-09-25 05:25:07 +02:00 committed by Brad King
parent faef6b4ec8
commit 8bb3b3d344
1 changed files with 5 additions and 1 deletions

View File

@ -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()