Skip to content
Permalink
Browse files

TargetArch: remove cmake module

Favour CMAKE_SYSTEM_PROCESSOR for detecting target arch

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
  • Loading branch information...
tingleby committed May 2, 2019
1 parent cad3a03 commit 47643bffdd80f33dc21badfac1fd1688d84b1c1f
Showing with 2 additions and 654 deletions.
  1. +2 −3 CMakeLists.txt
  2. +0 −504 cmake/modules/LICENSE.LGPL
  3. +0 −147 cmake/modules/TargetArch.cmake
@@ -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)
Oops, something went wrong.

0 comments on commit 47643bf

Please sign in to comment.
You can’t perform that action at this time.