From baa6a6153502a6714fb02011079df74d691a326a Mon Sep 17 00:00:00 2001 From: Rahul Vaidya Date: Mon, 11 Aug 2025 17:03:16 -0500 Subject: [PATCH] [BUILD] Fix UT packaging on Debian family OS (#1854) * Fix UT packaging on Debian family OSes Signed-off-by: ravaidya * Split OR condition when performing Debian checks Signed-off-by: ravaidya --------- Signed-off-by: ravaidya [ROCm/rccl commit: ee9ed3ef87c5d439ddd5bc81f7b6f6e5b0f3aa88] --- projects/rccl/test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rccl/test/CMakeLists.txt b/projects/rccl/test/CMakeLists.txt index 1d06535c9b..18f9b3fbe0 100644 --- a/projects/rccl/test/CMakeLists.txt +++ b/projects/rccl/test/CMakeLists.txt @@ -163,7 +163,9 @@ if(BUILD_TESTS) target_link_libraries(${test_executable} PRIVATE ${RCCL_COMMON_LINK_LIBS}) if(BUILD_SHARED_LIBS) target_link_libraries(${test_executable} PRIVATE rccl) - if((${HOST_OS_ID} STREQUAL "debian") OR (EXISTS ${HOST_OS_FAMILY} AND ${HOST_OS_FAMILY} STREQUAL "debian")) + if(${HOST_OS_ID} STREQUAL "debian") + set_property(TARGET ${test_executable} PROPERTY INSTALL_RPATH "${CMAKE_BINARY_DIR}") + elseif(DEFINED HOST_OS_FAMILY AND "${HOST_OS_FAMILY}" STREQUAL "debian") set_property(TARGET ${test_executable} PROPERTY INSTALL_RPATH "${CMAKE_BINARY_DIR}") endif() else()