aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2020-10-27 16:53:25 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2020-10-28 12:11:41 +0000
commitaaa54ae75100ddb5520698034f76d341bb036c99 (patch)
tree418a9a353483c53d967b79cbee4e5e63205b4c8d
parent0103e769491e1ee4474c55ead522468db4b3ebfb (diff)
downloadarmnn-aaa54ae75100ddb5520698034f76d341bb036c99.tar.gz
Bugfix: Don't try to link pipeCommon if it's not being built
* If BUILD_TIMELINE_DECODER=0 it gave /usr/bin/ld: cannot find -lpipeCommon Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: Ib10e894c54f32370a96b702a6f1b462fda31388b
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99e989b08c..66f6301eb1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -588,7 +588,11 @@ target_include_directories(armnn
profiling/common/include
)
-target_link_libraries(armnn armnnUtils pipeCommon)
+target_link_libraries(armnn armnnUtils)
+# only link pipeCommon if it has been built
+if(BUILD_TIMELINE_DECODER)
+ target_link_libraries(armnn pipeCommon)
+endif()
target_link_libraries(armnn ${CMAKE_DL_LIBS})
if ("${CMAKE_SYSTEM_NAME}" STREQUAL Windows)