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:
parent
e0af55a5f4
commit
5bf9fd8253
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue