diff --git a/cpp/tests/CMakeLists.txt b/cpp/tests/CMakeLists.txt index 8a0629f31f8..4cc9f2d94bf 100644 --- a/cpp/tests/CMakeLists.txt +++ b/cpp/tests/CMakeLists.txt @@ -169,6 +169,7 @@ function(ConfigureTest CMAKE_TEST_NAME) cugraphtestutil GTest::gtest GTest::gtest_main + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -188,9 +189,6 @@ function(ConfigureTest CMAKE_TEST_NAME) set_tests_properties(${CMAKE_TEST_NAME} PROPERTIES LABELS "CUGRAPH") endfunction() -add_library(test_logger_impls OBJECT) -target_link_libraries(test_logger_impls PRIVATE raft::raft_logger_impl) - function(ConfigureTestMG CMAKE_TEST_NAME) add_executable(${CMAKE_TEST_NAME} ${ARGN}) target_include_directories(${CMAKE_TEST_NAME} PRIVATE "${CUGRAPH_SOURCE_DIR}/src") @@ -254,6 +252,7 @@ function(ConfigureCTest CMAKE_TEST_NAME) cugraph_c_testutil GTest::gtest GTest::gtest_main + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -286,6 +285,7 @@ function(ConfigureCTestMG CMAKE_TEST_NAME) GTest::gtest_main NCCL::NCCL MPI::MPI_CXX + test_logger_impls ) set_target_properties( ${CMAKE_TEST_NAME} @@ -314,6 +314,10 @@ function(ConfigureCTestMG CMAKE_TEST_NAME) endfunction() +add_library(test_logger_impls OBJECT) +target_link_libraries(test_logger_impls PRIVATE raft::raft_logger_impl) + + ################################################################################################### ### test sources ################################################################################## ###################################################################################################