From 74adb64dfbc5ea9afa61fedf23eaecaed6bd22e6 Mon Sep 17 00:00:00 2001 From: Nilesh M Negi Date: Mon, 11 Aug 2025 09:43:26 -0500 Subject: [PATCH] [BUILD] Fix UT packaging on Debian OS (#1848) [ROCm/rccl commit: 5036d0e7134477928c2536a8498901626e173fe9] --- projects/rccl/test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rccl/test/CMakeLists.txt b/projects/rccl/test/CMakeLists.txt index 98878b1e76..1d06535c9b 100644 --- a/projects/rccl/test/CMakeLists.txt +++ b/projects/rccl/test/CMakeLists.txt @@ -163,7 +163,7 @@ 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_FAMILY} STREQUAL "debian") + if((${HOST_OS_ID} STREQUAL "debian") OR (EXISTS ${HOST_OS_FAMILY} AND ${HOST_OS_FAMILY} STREQUAL "debian")) set_property(TARGET ${test_executable} PROPERTY INSTALL_RPATH "${CMAKE_BINARY_DIR}") endif() else()