diff options
| author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-11 16:19:09 -0500 |
|---|---|---|
| committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-12 08:39:41 -0500 |
| commit | c1170b5602d609f6ccd2506e5db9916c74388187 (patch) | |
| tree | b4ce41ec8edaecdd0347cdfd63251ebee28efb8e /Tests/RunCMake/CommandLine | |
| parent | 51a0292d9cb24e13f6b600bc97d950ad4344cfa5 (diff) | |
| download | cmake-c1170b5602d609f6ccd2506e5db9916c74388187.tar.gz | |
cmake: Add -E copy_directory_if_different
Fixes #21584
Diffstat (limited to 'Tests/RunCMake/CommandLine')
| -rw-r--r-- | Tests/RunCMake/CommandLine/RunCMakeTest.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index 480ad097cb..f48e8453b8 100644 --- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake +++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake @@ -594,6 +594,15 @@ unset(in) unset(out) set(in ${RunCMake_SOURCE_DIR}/copy_input) +set(out ${RunCMake_BINARY_DIR}/copy_directory_different_output) +file(REMOVE_RECURSE "${out}") +file(MAKE_DIRECTORY ${out}) +run_cmake_command(E_copy_directory_if_different + ${CMAKE_COMMAND} -E copy_directory_if_different ${in} ${out}) +unset(in) +unset(out) + +set(in ${RunCMake_SOURCE_DIR}/copy_input) set(out ${RunCMake_BINARY_DIR}/copy_directory_output) set(outfile ${out}/file_for_test.txt) file(REMOVE_RECURSE "${out}") |
