diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 9936db5b2fa..d9422edaa8f 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -156,6 +156,21 @@ include(cmake/Modules/JitifyPreprocessKernels.cmake) # find cuFile include(cmake/Modules/FindcuFile.cmake) +# Workaround until https://github.com/rapidsai/rapids-cmake/issues/176 is resolved +if(NOT BUILD_SHARED_LIBS) + include("${rapids-cmake-dir}/export/find_package_file.cmake") + list(APPEND METADATA_KINDS BUILD INSTALL) + foreach(METADATA_KIND IN LISTS METADATA_KINDS) + rapids_export_find_package_file( + ${METADATA_KIND} "${CUDF_SOURCE_DIR}/cmake/Modules/FindcuFile.cmake" cudf-exports + ) + rapids_export_package(${METADATA_KIND} cuco cudf-exports) + rapids_export_package(${METADATA_KIND} ZLIB cudf-exports) + rapids_export_package(${METADATA_KIND} cuFile cudf-exports) + rapids_export_package(${METADATA_KIND} nvcomp cudf-exports) + endforeach() +endif() + # ################################################################################################## # * library targets ------------------------------------------------------------------------------- diff --git a/cpp/cmake/thirdparty/get_cucollections.cmake b/cpp/cmake/thirdparty/get_cucollections.cmake index 5a20f78b798..1639655d1e9 100644 --- a/cpp/cmake/thirdparty/get_cucollections.cmake +++ b/cpp/cmake/thirdparty/get_cucollections.cmake @@ -18,10 +18,13 @@ function(find_and_configure_cucollections) # Find or install cuCollections rapids_cpm_find( # cuCollections doesn't have a version yet - cuco 0.0 + cuco 0.0.1 GLOBAL_TARGETS cuco::cuco + BUILD_EXPORT_SET cudf-exports + INSTALL_EXPORT_SET cudf-exports CPM_ARGS GITHUB_REPOSITORY NVIDIA/cuCollections - GIT_TAG 6ec8b6dcdeceea07ab4456d32461a05c18864411 + GIT_TAG fb58a38701f1c24ecfe07d8f1f208bbe80930da5 + EXCLUDE_FROM_ALL ${BUILD_SHARED_LIBS} OPTIONS "BUILD_TESTS OFF" "BUILD_BENCHMARKS OFF" "BUILD_EXAMPLES OFF" )