From e3bd3f3520eb000d8983b5d5a509d58775642168 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 26 Nov 2024 20:41:59 +0000 Subject: [PATCH] Use consistent signature --- tests/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b718691ca..413f27f26 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -69,7 +69,7 @@ function(ConfigureTestInternal TEST_NAME) ${TEST_NAME} PUBLIC $<$:-O0 --coverage -fprofile-abs-path -fkeep-inline-functions -fno-elide-constructors>) target_link_options(${TEST_NAME} PRIVATE --coverage) - target_link_libraries(${TEST_NAME} gcov) + target_link_libraries(${TEST_NAME} PRIVATE gcov) endif() # Add coverage-generated files to clean target @@ -111,13 +111,13 @@ function(ConfigureTest TEST_NAME) # Test with legacy default stream. ConfigureTestInternal(${TEST_NAME} ${_RMM_TEST_UNPARSED_ARGUMENTS}) - target_link_libraries(${TEST_NAME} ${cudart_link_libs}) + target_link_libraries(${TEST_NAME} PRIVATE ${cudart_link_libs}) # Test with per-thread default stream. string(REGEX REPLACE "_TEST$" "_PTDS_TEST" PTDS_TEST_NAME "${TEST_NAME}") ConfigureTestInternal("${PTDS_TEST_NAME}" ${_RMM_TEST_UNPARSED_ARGUMENTS}) target_compile_definitions("${PTDS_TEST_NAME}" PUBLIC CUDA_API_PER_THREAD_DEFAULT_STREAM) - target_link_libraries(${PTDS_TEST_NAME} ${cudart_link_libs}) + target_link_libraries(${PTDS_TEST_NAME} PRIVATE ${cudart_link_libs}) foreach(name ${TEST_NAME} ${PTDS_TEST_NAME} ${NS_TEST_NAME}) rapids_test_add(