aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2021-05-14 11:44:04 +0100
committerKeith Davis <keith.davis@arm.com>2021-05-14 11:51:07 +0100
commit1d239f5717e6e4adc47683e30a48b05e7511c734 (patch)
treeea68580a0485fd40d169704fba0052b49a078685 /cmake
parent3761f82f7a3f948bb7d49b5e741eb61602c2a146 (diff)
downloadarmnn-1d239f5717e6e4adc47683e30a48b05e7511c734.tar.gz
MLCE-500 Link zlib library to ArmNN
Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: I7c47d0db778456380026cf56865e367e469067e3
Diffstat (limited to 'cmake')
-rw-r--r--cmake/GlobalConfig.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index b2f496d29c..0a9341f8ab 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -66,6 +66,7 @@ endif()
# Compiler flags that are always set
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lz") # Necessary for when building with ACL set with compressed kernels
if(COMPILER_IS_GNU_LIKE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -Werror -Wold-style-cast -Wno-missing-braces -Wconversion -Wsign-conversion")
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)