Commit eefcf2e0 authored by Craig Scott's avatar Craig Scott Committed by Kitware Robot
Browse files

Merge topic 'fetchcontent-patch-step-typo' into release-3.20

bd876f38

 FetchContent: Restore patch command support
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !5822
parents 50fc9d5b bd876f38
Pipeline #214846 failed with stages
in 40 minutes and 19 seconds
......@@ -3897,7 +3897,7 @@ function(_ep_do_preconfigure_steps_now name)
# Once any step has to run, all later steps have to be run too
set(need_to_run FALSE)
foreach(step IN ITEMS download update parse)
foreach(step IN ITEMS download update patch)
if(update_disconnected AND "${step}" STREQUAL "update")
continue()
endif()
......
.* *download 1
.* *download 2
.* *update 1
.* *update 2
.* *patch 1
.* *patch 2
include(FetchContent)
# Verify COMMAND keyword is recognised after various *_COMMAND options
FetchContent_Declare(multiCommand
DOWNLOAD_COMMAND "${CMAKE_COMMAND}" -E echo "download 1"
COMMAND "${CMAKE_COMMAND}" -E echo "download 2"
UPDATE_COMMAND "${CMAKE_COMMAND}" -E echo "update 1"
COMMAND "${CMAKE_COMMAND}" -E echo "update 2"
PATCH_COMMAND "${CMAKE_COMMAND}" -E echo "patch 1"
COMMAND "${CMAKE_COMMAND}" -E echo "patch 2"
)
# Force all steps to be re-run by removing timestamps, scripts, etc. from any
# previous run
file(REMOVE_RECURSE "${FETCHCONTENT_BASE_DIR}/multiCommand-subbuild")
set(FETCHCONTENT_QUIET FALSE)
FetchContent_MakeAvailable(multiCommand)
......@@ -2,6 +2,7 @@ include(RunCMake)
unset(RunCMake_TEST_NO_CLEAN)
run_cmake(MultiCommand)
run_cmake(MissingDetails)
run_cmake(DirectIgnoresDetails)
run_cmake(FirstDetailsWin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment