Skip to content

Commit 5ebf72a

Browse files
authored
Fix CMake export target. (#12238)
1 parent 0eea880 commit 5ebf72a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmake/xgboost-config.cmake.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if (XGBOOST_BUILD_STATIC_LIB)
1313
find_dependency(OpenMP)
1414
endif()
1515
if(USE_CUDA)
16-
find_dependency(CUDA)
16+
find_dependency(CUDAToolkit)
17+
find_dependency(CCCL)
1718
endif()
1819
# nccl should be linked statically if xgboost is built as static library.
1920
endif (XGBOOST_BUILD_STATIC_LIB)

0 commit comments

Comments
 (0)