Skip to content

Commit

Permalink
add working directory variable to avoid mishandled sed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaseeb123 committed Apr 11, 2024
1 parent 0f44faf commit aafd3be
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cpp/examples/set_cuda_architecture.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ execute_process(
"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
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
)

if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)
if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/libcudf_cpp_examples_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}/libcudf_cpp_examples_RAPIDS.cmake
)
endif()
include(${CMAKE_CURRENT_BINARY_DIR}/basic_example_RAPIDS.cmake)
include(${CMAKE_CURRENT_BINARY_DIR}/libcudf_cpp_examples_RAPIDS.cmake)

include(rapids-cmake)
include(rapids-cpm)
include(rapids-cuda)
include(rapids-export)
include(rapids-find)

0 comments on commit aafd3be

Please sign in to comment.