VS: Set the correct SubSystem when determinating the CompilerId

Some WinCE linker only work when the subsystem is set to WINDOWSCE.
This commit is contained in:
Patrick Gansterer 2012-11-30 14:14:27 +01:00
parent e0af55a5f4
commit 5bf9fd8253
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -36,7 +36,7 @@
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="false"
SubSystem="1"
SubSystem="@id_subsystem@"
/>
<Tool
Name="VCPostBuildEventTool"