diff options
author | Brad King <brad.king@kitware.com> | 2009-05-13 14:30:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-05-13 14:30:22 (GMT) |
commit | 33a1076b84c883f527f9817b51bdc2573841522e (patch) | |
tree | e673e45657923a56a1226f111f8d6b38a8a153e1 /Tests/StringFileTest/CMakeLists.txt | |
parent | 39c7fc97f01b3903922fb60091792a8a405b379a (diff) | |
download | CMake-33a1076b84c883f527f9817b51bdc2573841522e.zip CMake-33a1076b84c883f527f9817b51bdc2573841522e.tar.gz CMake-33a1076b84c883f527f9817b51bdc2573841522e.tar.bz2 |
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.
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index 398243c..798b9cd 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -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 ) |