Commit 5bf9fd82 authored by Patrick Gansterer's avatar Patrick Gansterer

VS: Set the correct SubSystem when determinating the CompilerId

Some WinCE linker only work when the subsystem is set to WINDOWSCE.
parent e0af55a5
...@@ -142,6 +142,9 @@ Id flags: ${testflags} ...@@ -142,6 +142,9 @@ Id flags: ${testflags}
endif() endif()
set(id_definitions "ADD_MAINCRTSTARTUP") set(id_definitions "ADD_MAINCRTSTARTUP")
set(id_subsystem 9)
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)
...@@ -36,7 +36,7 @@ ...@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment