From aaa54ae75100ddb5520698034f76d341bb036c99 Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Tue, 27 Oct 2020 16:53:25 +0000 Subject: 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 Change-Id: Ib10e894c54f32370a96b702a6f1b462fda31388b --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1