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:
parent
faef6b4ec8
commit
8bb3b3d344
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue