mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 13:10:17 -06:00
VS: Remove TargetMachine for linker when checking compiler id
If the TargetMachine isn't defined the linker will choose the correct target depending on the input file. This helps us later with additional compiler platforms for WinCE.
This commit is contained in:
@@ -124,16 +124,13 @@ Id flags: ${testflags}
|
|||||||
set(ext dsp)
|
set(ext dsp)
|
||||||
endif()
|
endif()
|
||||||
if("${vs_arch}" STREQUAL "Win64")
|
if("${vs_arch}" STREQUAL "Win64")
|
||||||
set(id_machine_7 17)
|
|
||||||
set(id_machine_10 MachineX64)
|
set(id_machine_10 MachineX64)
|
||||||
set(id_arch x64)
|
set(id_arch x64)
|
||||||
elseif("${vs_arch}" STREQUAL "IA64")
|
elseif("${vs_arch}" STREQUAL "IA64")
|
||||||
set(id_machine_7 5)
|
|
||||||
set(id_machine_10 MachineIA64)
|
set(id_machine_10 MachineIA64)
|
||||||
set(id_arch ia64)
|
set(id_arch ia64)
|
||||||
else()
|
else()
|
||||||
set(id_machine_6 x86)
|
set(id_machine_6 x86)
|
||||||
set(id_machine_7 1)
|
|
||||||
set(id_machine_10 MachineX86)
|
set(id_machine_10 MachineX86)
|
||||||
set(id_arch Win32)
|
set(id_arch Win32)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="1"
|
SubSystem="1"
|
||||||
TargetMachine="@id_machine_7@"
|
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
|
|||||||
Reference in New Issue
Block a user