Skip to content

Commit

Permalink
Use rapids-cmake 22.10 best practice for RAPIDS.cmake location
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.
  • Loading branch information
robertmaynard committed Aug 11, 2022
1 parent 56590f2 commit 2a0096b
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 2a0096b

Please sign in to comment.