aboutsummaryrefslogtreecommitdiff
path: root/cmake/GlobalConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/GlobalConfig.cmake')
-rw-r--r--cmake/GlobalConfig.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index 968642b35d..4e20cc7da5 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -238,6 +238,11 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
# We link to the static variant so that customers don't need to find and build a compatible version of clframework.
# First try the folders specified ARMCOMPUTE_BUILD_DIR (with PATH_SUFFIXES for
# Windows builds)
+ if ((NOT DEFINED ARMCOMPUTE_BUILD_DIR) AND (DEFINED ARMCOMPUTE_ROOT))
+ # Default build directory for ComputeLibrary is under the root
+ set(ARMCOMPUTE_BUILD_DIR ${ARMCOMPUTE_ROOT}/build)
+ endif()
+
find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute-static
PATHS ${ARMCOMPUTE_BUILD_DIR}
PATH_SUFFIXES "Debug"