diff --git a/iceoryx_hoofs/platform/CMakeLists.txt b/iceoryx_hoofs/platform/CMakeLists.txt index 3142e56dad0..937bc486f15 100644 --- a/iceoryx_hoofs/platform/CMakeLists.txt +++ b/iceoryx_hoofs/platform/CMakeLists.txt @@ -47,8 +47,8 @@ iox_add_library( NAMESPACE iceoryx_hoofs BUILD_INTERFACE ${ICEORYX_PLATFORM}/include/ INSTALL_INTERFACE include/${PREFIX} - PUBLIC_LIBS_LINUX rt pthread - PUBLIC_LIBS_UNIX rt pthread + PRIVATE_LIBS_LINUX pthread rt + PRIVATE_LIBS_UNIX pthread rt PRIVATE_LIBS_QNX socket FILES ${ICEORYX_PLATFORM_FILES} ) diff --git a/iceoryx_hoofs/testing/CMakeLists.txt b/iceoryx_hoofs/testing/CMakeLists.txt index 8b3ef33e642..997a97e898d 100644 --- a/iceoryx_hoofs/testing/CMakeLists.txt +++ b/iceoryx_hoofs/testing/CMakeLists.txt @@ -22,7 +22,7 @@ iox_add_library( STATIC - TARGET ${PROJECT_NAME}_testing + TARGET iceoryx_hoofs_testing NAMESPACE iceoryx_hoofs_testing PROJECT_PREFIX ${PREFIX} PUBLIC_LIBS GTest::gtest