diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2020-05-20 10:44:18 +0100 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2020-05-22 14:01:37 +0000 |
commit | 2624dd719a78d02e7500557d284191f90f7a707e (patch) | |
tree | 11d4d58be2997450a16bddb38db7bec226c0d578 /cmake | |
parent | d6f06496e41061d74abb3548374e5b52a2670bc3 (diff) | |
download | armnn-2624dd719a78d02e7500557d284191f90f7a707e.tar.gz |
Find default build location for Compute Library binaries.
In common cases this reduces the cmake arguments needed
for Compute Library from:
"cmake -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMCOMPUTE_ROOT=../ComputeLibrary -DARMCOMPUTE_BUILD_DIR=ARMCOMPUTE_BUILD_DIR=../ComputeLibrary/build -DSHARED_BOOST=1 ../armnn/"
to:
"cmake -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMCOMPUTE_ROOT=../ComputeLibrary -DSHARED_BOOST=1 ../armnn/"
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I992f4ef428f10dc92ca9457fe8981ae3af93f538
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/GlobalConfig.cmake | 5 |
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" |