From b4c43c5fd03cf93fd935343a4e8b2ccfa763afdb Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Fri, 3 Jan 2025 09:39:14 -0800 Subject: [PATCH] Use rapids-cmake for the logger (#1776) This PR switches rmm to use rapids-cmake to fetch rapids-logger so that it uses a consistent version with the rest of RAPIDS to avoid any cases where transitive CPM loads result in multiple packages being built from source that require a different version of rapids-logger. Depends on https://github.com/rapidsai/rapids-cmake/pull/737 Contributes to rapidsai/build-planning#104. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Bradley Dice (https://github.com/bdice) URL: https://github.com/rapidsai/rmm/pull/1776 --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d281d047e..859e4022e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,9 +73,8 @@ rapids_find_package( # add third party dependencies using CPM rapids_cpm_init() -CPMAddPackage( - NAME rapids_logger GITHUB_REPOSITORY rapidsai/rapids-logger GIT_SHALLOW FALSE GIT_TAG - 1043e0f3989d75ad52f5212544b8154777e86fc9 VERSION 1043e0f3989d75ad52f5212544b8154777e86fc9) +include(${rapids-cmake-dir}/cpm/rapids_logger.cmake) +rapids_cpm_rapids_logger() rapids_make_logger(rmm EXPORT_SET rmm-exports) include(cmake/thirdparty/get_cccl.cmake)