summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libtransport/src/test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/libtransport/src/test/CMakeLists.txt b/libtransport/src/test/CMakeLists.txt
index cdebfcbee..19e59c7e1 100644
--- a/libtransport/src/test/CMakeLists.txt
+++ b/libtransport/src/test/CMakeLists.txt
@@ -18,6 +18,9 @@ list(APPEND TESTS
test_transport_producer
)
+if (${LIBTRANSPORT_SHARED} MATCHES ".*-memif.*")
+ set(LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs")
+endif()
foreach(test ${TESTS})
build_executable(${test}
@@ -28,6 +31,7 @@ foreach(test ${TESTS})
DEPENDS gtest ${LIBTRANSPORT_SHARED}
COMPONENT lib${LIBTRANSPORT}
DEFINITIONS "${COMPILER_DEFINITIONS}"
+ LINK_FLAGS ${LINK_FLAGS}
)
add_test_internal(${test})