Skip to content

Commit

Permalink
Pin to CPM 0.40.2 to work around cpm-cmake/CPM.cmake#637
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Feb 26, 2025
1 parent 0823069 commit 7f174a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rapids-cmake/cpm/detail/download.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function(rapids_cpm_download)
list(APPEND CMAKE_MESSAGE_CONTEXT "rapids.cpm.download")

# When changing version verify no new variables needs to be propagated
set(CPM_DOWNLOAD_VERSION 0.40.5)
set(CPM_DOWNLOAD_MD5_HASH 19cbb284c7b175d239670d47dd9d0e9e)
set(CPM_DOWNLOAD_VERSION 0.40.2)
set(CPM_DOWNLOAD_MD5_HASH 4d51aa9dab6104fad39c5b7a692d5e1c)

if(NOT DEFINED CPM_DOWNLOAD_LOCATION)
if(CPM_SOURCE_CACHE)
Expand Down
5 changes: 5 additions & 0 deletions testing/cpm/cpm_find-and-find_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ rapids_cpm_find(cucxx 1.0)
# Should find CPM generated `Findcucxx.cmake`
find_package(cucxx REQUIRED)

set(expected_find_path "${CPM_MODULE_PATH}/Findcucxx.cmake")
if(NOT EXISTS "${expected_find_path}")
message(FATAL_ERROR "Findcucxx.cmake was not generated")
endif()

if(NOT TARGET MOCK_CUCXX)
message(FATAL_ERROR "cucxx targets should be generated")
endif()

0 comments on commit 7f174a0

Please sign in to comment.