Browse Source

VS: Set the correct SubSystem when determinating the CompilerId

Some WinCE linker only work when the subsystem is set to WINDOWSCE.
Patrick Gansterer 13 years ago
parent
commit
5bf9fd8253
2 changed files with 4 additions and 1 deletions
  1. 3 0
      Modules/CMakeDetermineCompilerId.cmake
  2. 1 1
      Modules/CompilerId/VS-7.vcproj.in

+ 3 - 0
Modules/CMakeDetermineCompilerId.cmake

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

+ 1 - 1
Modules/CompilerId/VS-7.vcproj.in

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