diff options
author | Patrick Gansterer <paroga@paroga.com> | 2013-08-05 18:04:44 (GMT) |
---|---|---|
committer | Patrick Gansterer <paroga@paroga.com> | 2013-08-05 18:04:44 (GMT) |
commit | bd827f98efc1d4294b9a7d0fc134629b7507f4a1 (patch) | |
tree | 0c72621825b39f087e474ce2f6b9aae90381fdf7 /Modules/Platform | |
parent | 1768014dfc8aee30430d57c8f984aad0abb15094 (diff) | |
download | CMake-bd827f98efc1d4294b9a7d0fc134629b7507f4a1.zip CMake-bd827f98efc1d4294b9a7d0fc134629b7507f4a1.tar.gz CMake-bd827f98efc1d4294b9a7d0fc134629b7507f4a1.tar.bz2 |
WIN: Use COFF file header header for architecture detection (#14083)
Read the machine field from the COFF file header to get the exact
target architecture for ARM and SHx on the Windows platform.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-MSVC.cmake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake index 9f97570..1a2d3e9 100644 --- a/Modules/Platform/Windows-MSVC.cmake +++ b/Modules/Platform/Windows-MSVC.cmake @@ -171,13 +171,6 @@ set(_MACHINE_ARCH_FLAG ${MSVC_C_ARCHITECTURE_ID}) if(NOT _MACHINE_ARCH_FLAG) set(_MACHINE_ARCH_FLAG ${MSVC_CXX_ARCHITECTURE_ID}) endif() -if(WINCE) - if(_MACHINE_ARCH_FLAG MATCHES "ARM") - set(_MACHINE_ARCH_FLAG "THUMB") - elseif(_MACHINE_ARCH_FLAG MATCHES "SH") - set(_MACHINE_ARCH_FLAG "SH4") - endif() -endif() set (CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} /machine:${_MACHINE_ARCH_FLAG}") |