diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-11 21:19:09 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-12 13:39:41 (GMT) |
commit | c1170b5602d609f6ccd2506e5db9916c74388187 (patch) | |
tree | b4ce41ec8edaecdd0347cdfd63251ebee28efb8e /Tests/RunCMake/CommandLine | |
parent | 51a0292d9cb24e13f6b600bc97d950ad4344cfa5 (diff) | |
download | CMake-c1170b5602d609f6ccd2506e5db9916c74388187.zip CMake-c1170b5602d609f6ccd2506e5db9916c74388187.tar.gz CMake-c1170b5602d609f6ccd2506e5db9916c74388187.tar.bz2 |
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 480ad09..f48e845 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}") |