if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake)
  file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-24.02/RAPIDS.cmake
       ${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake
  )
endif()

include(${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake)
