Private
Public Access
2
0

TargetArch: remove cmake module

Favour CMAKE_SYSTEM_PROCESSOR for detecting target arch

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2019-05-02 11:30:41 -07:00
parent cad3a03d0d
commit 47643bffdd
3 changed files with 2 additions and 654 deletions

View File

@@ -169,8 +169,7 @@ if (NOT BUILDSWIG)
endif()
if (NOT BUILDARCH)
include (TargetArch)
target_architecture (DETECTED_ARCH)
set (DETECTED_ARCH ${CMAKE_SYSTEM_PROCESSOR})
message (STATUS "INFO - Target arch is ${DETECTED_ARCH}")
else ()
set (DETECTED_ARCH ${BUILDARCH})
@@ -180,7 +179,7 @@ endif()
if (DETECTED_ARCH STREQUAL "i586" OR DETECTED_ARCH STREQUAL "x86_64"
OR DETECTED_ARCH STREQUAL "i386")
set (X86PLAT ON)
elseif (DETECTED_ARCH MATCHES "arm.*")
elseif (DETECTED_ARCH MATCHES "arm.*" OR DETECTED_ARCH MATCHES "aarch64")
set (ARMPLAT ON)
elseif (DETECTED_ARCH MATCHES "mips")
set (MIPSPLAT ON)