BUG: file(COPY) test should not make read-only dir

CMake directory removal code cannot remove content from read-only
directories (a separate bug which will be fixed).  Therefore we should
not create them in the StringFileTest.  This tweaks the file(COPY) call
to test not giving OWNER_WRITE to files rather than directories.
This commit is contained in:
Brad King 2009-05-13 10:30:22 -04:00
parent 39c7fc97f0
commit 33a1076b84
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ FILE(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
# Test file copy with relative paths
FILE(COPY .
DESTINATION src
FILE_PERMISSIONS OWNER_READ OWNER_WRITE
DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE # test no OWNER_WRITE
FILE_PERMISSIONS OWNER_READ # test no OWNER_WRITE
DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
FILES_MATCHING PATTERN *.cxx # Only copy the main source file
REGEX /src$ EXCLUDE # Block recursion for in-source build
)