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() endif()
if(CMAKE_VS_WINCE_VERSION) if(CMAKE_VS_WINCE_VERSION)
set(id_definitions "ADD_MAINCRTSTARTUP") set(id_definitions "ADD_MAINCRTSTARTUP")
set(id_subsystem 9)
else()
set(id_subsystem 1)
endif() endif()
if("${CMAKE_MAKE_PROGRAM}" MATCHES "[Mm][Ss][Bb][Uu][Ii][Ll][Dd]") 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) set(build /p:Configuration=Debug /p:Platform=@id_arch@ /p:VisualStudioVersion=${vs_version}.0)

View File

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