Browse Source

Merge topic 'wince-subsystem'

8bb3b3d VS: Use version-specific subsystem for WinCE compiler id (#14440)
Brad King 12 years ago
parent
commit
46ea14718c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Modules/CMakeDetermineCompilerId.cmake

+ 5 - 1
Modules/CMakeDetermineCompilerId.cmake

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