IVGCVSW-7435 Making optional some CL code in Acl Common.
* Some code was moved to aclcommon to facilitate GpuFsa. It causes
build problems when ACL is build without CL support.
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Change-Id: Ia49d1fb7e69aaa8a694f402968e9ae689c2a874c
diff --git a/src/backends/aclCommon/CMakeLists.txt b/src/backends/aclCommon/CMakeLists.txt
index b3bf89e..eaaed65 100644
--- a/src/backends/aclCommon/CMakeLists.txt
+++ b/src/backends/aclCommon/CMakeLists.txt
@@ -8,14 +8,19 @@
ArmComputeTensorHandle.hpp
ArmComputeTensorUtils.hpp
ArmComputeTensorUtils.cpp
- ArmComputeTuningUtils.hpp
- ArmComputeTuningUtils.cpp
ArmComputeUtils.hpp
BaseMemoryManager.cpp
BaseMemoryManager.hpp
IClTensorHandle.hpp
)
+if(ARMCOMPUTECL)
+ list(APPEND armnnAclCommon_sources
+ ArmComputeTuningUtils.hpp
+ ArmComputeTuningUtils.cpp
+ )
+endif()
+
if(BUILD_UNIT_TESTS)
add_subdirectory(test)
endif()