Use regular expression to check arm architecture (#4765)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 18 Mar 2019 04:46:46 +0000 (13:46 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 18 Mar 2019 04:46:46 +0000 (13:46 +0900)
Use regular arm* and aarch* to check arm architecture

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
CMakeLists.txt

index 269963f..38ff696 100644 (file)
@@ -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)