Skip to content

Commit bcd8386

Browse files
Find ucx after CCCL
1 parent bc5d223 commit bcd8386

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cpp/CMakeLists.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ rapids_find_package(CUDAToolkit REQUIRED
7171
INSTALL_EXPORT_SET cugraph-exports
7272
)
7373

74-
if (BUILD_CUGRAPH_MTMG_TESTS)
75-
if(NOT TARGET ucx::ucp)
76-
find_package(ucx REQUIRED)
77-
endif()
78-
79-
if(NOT TARGET ucxx::ucxx)
80-
find_package(ucxx REQUIRED)
81-
endif()
82-
endif()
83-
8474
set(CUGRAPH_C_FLAGS "")
8575
set(CUGRAPH_CXX_FLAGS "")
8676
set(CUGRAPH_CUDA_FLAGS "")
@@ -137,6 +127,16 @@ include(${rapids-cmake-dir}/cpm/cuco.cmake)
137127
rapids_cpm_cuco(BUILD_EXPORT_SET cugraph-exports INSTALL_EXPORT_SET cugraph-exports)
138128
include(cmake/thirdparty/get_raft.cmake)
139129

130+
if (BUILD_CUGRAPH_MTMG_TESTS)
131+
if(NOT TARGET ucx::ucp)
132+
find_package(ucx REQUIRED)
133+
endif()
134+
135+
if(NOT TARGET ucxx::ucxx)
136+
find_package(ucxx REQUIRED)
137+
endif()
138+
endif()
139+
140140
if(BUILD_TESTS)
141141
include(${rapids-cmake-dir}/cpm/gtest.cmake)
142142
rapids_cpm_gtest(BUILD_STATIC)

0 commit comments

Comments
 (0)