Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/RAPIDS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
cmake_minimum_required(VERSION 3.30.4 FATAL_ERROR)

# Allow users to control which version is used
if(NOT rapids-cmake-branch OR NOT rapids-cmake-version)
if(NOT (rapids-cmake-branch OR rapids-cmake-version))
message(
FATAL_ERROR "The CMake variable `rapids-cmake-branch` or `rapids-cmake-version` must be defined"
)
Expand Down
8 changes: 6 additions & 2 deletions cmake/rapids_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if(NOT _rapids_branch)
)
endif()

set(rapids-cmake-version "${RAPIDS_VERSION_MAJOR_MINOR}")
set(rapids-cmake-branch "${_rapids_branch}")
if(NOT rapids-cmake-version)
set(rapids-cmake-version "${RAPIDS_VERSION_MAJOR_MINOR}")
endif()
if(NOT rapids-cmake-branch)
set(rapids-cmake-branch "${_rapids_branch}")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/RAPIDS.cmake")