From: Francis Murtagh <francis.murtagh@arm.com>
Date: Tue, 1 Aug 2023 21:39:26 +0200
Subject: Use system libarm-compute library

X-Dgit-Generated: 20.08-1 a87ca2399a3379e215d67a6f809a201d88750a16

Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
---
 cmake/GlobalConfig.cmake | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index 2d97899..e413e4f 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -325,10 +325,18 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
 
         # In case it wasn't there, try a default search (will work in cases where
         # the library has been installed into a standard location)
-        find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute-static)
-        find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute-static)
-        find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core-static)
-        find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core-static)
+        #find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute-static)
+        #find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute-static)
+        #find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core-static)
+        #find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core-static)
+
+        # In case it wasn't there, try the dynamic libraries
+        # This case will get used in a linux setup where the Compute Library
+        # has been installed in a standard system library path as a dynamic library
+        find_library(ARMCOMPUTE_LIBRARY_DEBUG NAMES arm_compute)
+        find_library(ARMCOMPUTE_LIBRARY_RELEASE NAMES arm_compute)
+        find_library(ARMCOMPUTE_CORE_LIBRARY_DEBUG NAMES arm_compute_core)
+        find_library(ARMCOMPUTE_CORE_LIBRARY_RELEASE NAMES arm_compute_core)
 
         # In case it wasn't there, try the dynamic libraries
         # This case will get used in a linux setup where the Compute Library
