From 425db5eb52a490613a09b24de133d96ba999117a Mon Sep 17 00:00:00 2001 From: khromenokroman Date: Fri, 23 Aug 2024 11:33:22 +0200 Subject: [PATCH] iox-#2330 Refine systemd configuration for iceoryx_posh_roudi Update the CMake script to enable systemd support only for iceoryx_posh_roudi. This ensures that systemd is correctly utilized where needed and prevents potential misconfigurations for other targets. --- iceoryx_platform/cmake/IceoryxPackageHelper.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iceoryx_platform/cmake/IceoryxPackageHelper.cmake b/iceoryx_platform/cmake/IceoryxPackageHelper.cmake index 0312433d5d..0858a27b35 100644 --- a/iceoryx_platform/cmake/IceoryxPackageHelper.cmake +++ b/iceoryx_platform/cmake/IceoryxPackageHelper.cmake @@ -340,7 +340,8 @@ Macro(iox_add_library) target_include_directories(${IOX_TARGET} PUBLIC ${IOX_PUBLIC_INCLUDES} PRIVATE ${IOX_PRIVATE_INCLUDES}) if ( LINUX ) - if(USE_SYSTEMD) + if(USE_SYSTEMD AND ("${IOX_TARGET}" STREQUAL "iceoryx_posh_roudi")) + message(STATUS "[i] Configuring iceoryx_posh_roudi with systemd support.") target_compile_definitions(${IOX_TARGET} PRIVATE USE_SYSTEMD=1) target_link_libraries(${IOX_TARGET} PUBLIC ${IOX_PUBLIC_LIBS_LINUX} PRIVATE ${IOX_PRIVATE_LIBS_LINUX} systemd) else()