From 47ec54c3330de176ed0b8e3254e81d9451fb866a Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Fri, 11 Dec 2015 16:28:28 +0000 Subject: [PATCH] TargetArch.cmake: Add support to aarch64 based platforms This patch adds support to aarch64 arm 64 bit platforms. Signed-off-by: Srinivas Kandagatla Signed-off-by: Brendan Le Foll --- cmake/modules/TargetArch.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/modules/TargetArch.cmake b/cmake/modules/TargetArch.cmake index 1e9c759..f20ee87 100644 --- a/cmake/modules/TargetArch.cmake +++ b/cmake/modules/TargetArch.cmake @@ -13,7 +13,9 @@ # "There are many more known variants/revisions that we do not handle/detect." set(archdetect_c_code " -#if defined(__arm__) || defined(__TARGET_ARCH_ARM) +#if defined(__aarch64__) + #error cmake_ARCH armv8 +#elif defined(__arm__) || defined(__TARGET_ARCH_ARM) #if defined(__ARM_ARCH_7__) \\ || defined(__ARM_ARCH_7A__) \\ || defined(__ARM_ARCH_7R__) \\