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.
This commit is contained in:
parent
0de7807c36
commit
a293dcb561
|
@ -11,7 +11,7 @@ set(out "@CMAKE_CURRENT_BINARY_DIR@/ELF-Out")
|
||||||
file(REMOVE_RECURSE "${out}")
|
file(REMOVE_RECURSE "${out}")
|
||||||
file(MAKE_DIRECTORY "${out}")
|
file(MAKE_DIRECTORY "${out}")
|
||||||
foreach(f ${names})
|
foreach(f ${names})
|
||||||
file(COPY ${in}/${f} DESTINATION ${out})
|
file(COPY ${in}/${f} DESTINATION ${out} NO_SOURCE_PERMISSIONS)
|
||||||
list(APPEND files "${out}/${f}")
|
list(APPEND files "${out}/${f}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue