Browse Source

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.
Brad King 16 years ago
parent
commit
33a1076b84
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Tests/StringFileTest/CMakeLists.txt

+ 2 - 2
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
   )