From 7f4f13b44be2492681d43dde8bb0a45bcc8a4e74 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 12 Dec 2024 11:47:09 -0800 Subject: [PATCH] try adding exports back --- cpp/cmake/thirdparty/get_raft.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cpp/cmake/thirdparty/get_raft.cmake b/cpp/cmake/thirdparty/get_raft.cmake index da264b5bce..bbc9f704dd 100644 --- a/cpp/cmake/thirdparty/get_raft.cmake +++ b/cpp/cmake/thirdparty/get_raft.cmake @@ -32,16 +32,16 @@ function(find_and_configure_raft) if(PKG_COMPILE_RAFT_LIB) if(NOT PKG_USE_RAFT_STATIC) - string(APPEND RAFT_COMPONENTS " raft compiled") + string(APPEND RAFT_COMPONENTS " compiled") else() - string(APPEND RAFT_COMPONENTS " raft compiled_static") + string(APPEND RAFT_COMPONENTS " compiled_static") endif() endif() rapids_cpm_find(raft ${PKG_VERSION} GLOBAL_TARGETS raft::raft - # BUILD_EXPORT_SET cugraph-exports - # INSTALL_EXPORT_SET cugraph-exports + BUILD_EXPORT_SET cugraph-exports + INSTALL_EXPORT_SET cugraph-exports COMPONENTS ${RAFT_COMPONENTS} CPM_ARGS EXCLUDE_FROM_ALL TRUE @@ -61,6 +61,7 @@ function(find_and_configure_raft) # TODO(jameslamb): move this under if(raft_ADDED)? install( TARGETS raft + EXPORT cugraph-exports FILE_SET raft_headers DESTINATION ${CMAKE_INSTALL_PREFIX} )