From 45d9c7b0181a839315ade9223b8c3dc99f9546e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 18 Mar 2019 13:46:46 +0900 Subject: [PATCH] Use regular expression to check arm architecture (#4765) Use regular arm* and aarch* to check arm architecture Signed-off-by: Hyeongseok Oh --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 269963f..38ff696 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ option(BUILD_TENSORFLOW_LITE "Build TensorFlow Lite from the downloaded source" option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON) CMAKE_DEPENDENT_OPTION(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" # Enable ARMCompute build if the target architecture is aarch - OFF "NOT ${TARGET_ARCH_BASE} STREQUAL arm;NOT ${TARGET_ARCH_BASE} STREQUAL aarch" + OFF "NOT ${TARGET_ARCH_BASE} MATCHES arm*;NOT ${TARGET_ARCH_BASE} MATCHES aarch*" # Disable ARMCompute build otherwise ON) option(DOWNLOAD_NONIUS "Download nonius source" ON) -- 2.7.4