summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorBill Newcomb <bnewcomb@nvidia.com>2015-04-01 20:13:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-01 20:34:04 (GMT)
commita293dcb561e3961c1d55f2fc8ccaaf1b4f17204c (patch)
treed821dd53c73083c00a6485b26702ab99681fed3c /Tests/CMakeTests
parent0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf (diff)
downloadCMake-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/CMakeTests')
-rw-r--r--Tests/CMakeTests/ELFTest.cmake.in2
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()