From f01e50a004c6a210f7b17d252c42fe65bd4ce96d Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 5 Mar 2021 14:04:09 -0800 Subject: [PATCH] Make sure rmm::rmm CMake target is visibile to cudf users --- cpp/cmake/thirdparty/CUDF_GetRMM.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpp/cmake/thirdparty/CUDF_GetRMM.cmake b/cpp/cmake/thirdparty/CUDF_GetRMM.cmake index b4a6a67c24d..ccefaf2ff33 100644 --- a/cpp/cmake/thirdparty/CUDF_GetRMM.cmake +++ b/cpp/cmake/thirdparty/CUDF_GetRMM.cmake @@ -49,6 +49,13 @@ function(find_and_configure_rmm VERSION) cudf_restore_if_enabled(BUILD_TESTS) cudf_restore_if_enabled(BUILD_BENCHMARKS) + #Make sure consumers of cudf can also see rmm::rmm + if(TARGET rmm::rmm) + get_target_property(rmm_is_imported rmm::rmm IMPORTED) + if(rmm_is_imported) + set_target_properties(rmm::rmm PROPERTIES IMPORTED_GLOBAL TRUE) + endif() + endif() if(NOT rmm_BINARY_DIR IN_LIST CMAKE_PREFIX_PATH) list(APPEND CMAKE_PREFIX_PATH "${rmm_BINARY_DIR}") set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)