Skip to content

Commit

Permalink
Now that we always download we should never be missing source directo…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
vyasr committed Dec 4, 2024
1 parent f97b1dd commit 52be017
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/cpm/verify_generated_pins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ function(verify_generated_pins target_name)
set(_RAPIDS_PIN_FILE "${CMAKE_CURRENT_BINARY_DIR}/rapids-cmake/pinned_versions.json")
endif()

# only check projects that were downloaded by CPM (ignore those already in the build environment)
foreach(proj IN LISTS _RAPIDS_PROJECTS)
if(CPM_PACKAGE_${proj}_SOURCE_DIR)
list(APPEND projects-to-verify ${proj})
if(NOT CPM_PACKAGE_${proj}_SOURCE_DIR)
message(FATAL_ERROR "Attempting to verify a project that was not cloned as part of this build")
endif()
endforeach()

add_custom_target(${target_name} ALL
COMMAND ${CMAKE_COMMAND} "-S${CMAKE_CURRENT_FUNCTION_LIST_DIR}/verify_generated_pins/" "-B${CMAKE_BINARY_DIR}/${target_name}_verify_build"
"-Drapids-cmake-dir=${rapids-cmake-dir}"
"-Dpinned_versions_file=${_RAPIDS_PIN_FILE}"
"-Dprojects-to-verify=${projects-to-verify}"
"-Dprojects-to-verify=${_RAPIDS_PROJECTS}"
"-Dprojects-not-in-list=${_RAPIDS_PROJECTS_NOT_EXIST}"
VERBATIM
)
Expand Down

0 comments on commit 52be017

Please sign in to comment.