diff options
author | Bill Newcomb <bnewcomb@nvidia.com> | 2015-04-01 20:13:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-01 20:34:04 (GMT) |
commit | a293dcb561e3961c1d55f2fc8ccaaf1b4f17204c (patch) | |
tree | d821dd53c73083c00a6485b26702ab99681fed3c /Tests | |
parent | 0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf (diff) | |
download | CMake-a293dcb561e3961c1d55f2fc8ccaaf1b4f17204c.zip CMake-a293dcb561e3961c1d55f2fc8ccaaf1b4f17204c.tar.gz CMake-a293dcb561e3961c1d55f2fc8ccaaf1b4f17204c.tar.bz2 |
Tests: Fix CMake.ELF test with read-only source (#15489)
When the cmake sources are all set to read-only (e.g. after importing
into perforce), the CMake.ELF test fails because the copy of the binary
is also read-only and cannot be modified. Fix this by copying the
binary without source permissions.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/ELFTest.cmake.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ELFTest.cmake.in b/Tests/CMakeTests/ELFTest.cmake.in index 0271abb..4635778 100644 --- a/Tests/CMakeTests/ELFTest.cmake.in +++ b/Tests/CMakeTests/ELFTest.cmake.in @@ -11,7 +11,7 @@ set(out "@CMAKE_CURRENT_BINARY_DIR@/ELF-Out") file(REMOVE_RECURSE "${out}") file(MAKE_DIRECTORY "${out}") foreach(f ${names}) - file(COPY ${in}/${f} DESTINATION ${out}) + file(COPY ${in}/${f} DESTINATION ${out} NO_SOURCE_PERMISSIONS) list(APPEND files "${out}/${f}") endforeach() |