Skip to content

Commit

Permalink
Use rapids-cmake 22.10 best practice for RAPIDS.cmake location (rapid…
Browse files Browse the repository at this point in the history
…sai#4862)

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:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#4862
  • Loading branch information
robertmaynard committed Aug 25, 2022
1 parent 924d8f8 commit 2925ded
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}/CUML_RAPIDS.cmake)
file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-22.10/RAPIDS.cmake
${CMAKE_CURRENT_BINARY_DIR}/CUML_RAPIDS.cmake
)
endif()
include(${CMAKE_CURRENT_BINARY_DIR}/CUML_RAPIDS.cmake)

0 comments on commit 2925ded

Please sign in to comment.