Skip to content

Commit

Permalink
Use rapids-cmake 22.10 best practice for RAPIDS.cmake location (#784)
Browse files Browse the repository at this point in the history
Removes possibility of another projects `RAPIDS.cmake` being used, and removes need to always download a version.

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #784
  • Loading branch information
robertmaynard authored Aug 9, 2022
1 parent 5b0461f commit 3b26f00
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fetch_rapids.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-22.10/RAPIDS.cmake
${CMAKE_BINARY_DIR}/RAPIDS.cmake
)
include(${CMAKE_BINARY_DIR}/RAPIDS.cmake)
if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake)
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-22.10/RAPIDS.cmake
${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake
)
endif()
include(${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake)

0 comments on commit 3b26f00

Please sign in to comment.