diff --git a/cpp/examples/fetch_dependencies.cmake b/cpp/examples/fetch_dependencies.cmake index c6d93b5722f..819a7565ecf 100644 --- a/cpp/examples/fetch_dependencies.cmake +++ b/cpp/examples/fetch_dependencies.cmake @@ -26,11 +26,10 @@ set(CUDF_TAG branch-24.06) # find or build it via CPM CPMFindPackage( NAME cudf - FIND_PACKAGE_ARGUMENTS "HINTS ${cudf_ROOT}/latest" - GIT_REPOSITORY https://github.com/rapidsai/cudf + FIND_PACKAGE_ARGUMENTS "HINTS ${cudf_ROOT}/latest" GIT_REPOSITORY https://github.com/rapidsai/cudf GIT_TAG ${CUDF_TAG} GIT_SHALLOW TRUE SOURCE_SUBDIR cpp - ) +) diff --git a/cpp/examples/set_cuda_architecture.cmake b/cpp/examples/set_cuda_architecture.cmake index 28bdda82737..a6ad25d08d4 100644 --- a/cpp/examples/set_cuda_architecture.cmake +++ b/cpp/examples/set_cuda_architecture.cmake @@ -12,12 +12,20 @@ # the License. # ============================================================================= -# get the CUDF_TAG from fetch_dependencies.cmake (remove all whitespace & parse line: set(CUDF_TAG ..)) -execute_process(COMMAND bash -c "sed '/^$/d;s/[[:blank:]]//g' ./fetch_dependencies.cmake | grep 'set(CUDF_TAG' | sed 's/.*CUDF_TAG//' | sed 's/.$//'" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE CUDF_TAG) +# get the CUDF_TAG from fetch_dependencies.cmake (remove all whitespace & parse line: set(CUDF_TAG +# ..)) +execute_process( + COMMAND + bash -c + "sed '/^$/d;s/[[:blank:]]//g' ./fetch_dependencies.cmake | grep 'set(CUDF_TAG' | sed 's/.*CUDF_TAG//' | sed 's/.$//'" + OUTPUT_STRIP_TRAILING_WHITESPACE + OUTPUT_VARIABLE CUDF_TAG +) if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake) file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/${CUDF_TAG}/RAPIDS.cmake - ${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake) + ${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake + ) endif() include(${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)