From 33a1076b84c883f527f9817b51bdc2573841522e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 May 2009 10:30:22 -0400 Subject: 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. --- Tests/StringFileTest/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/StringFileTest') diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index 398243cabf..798b9cd930 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 ) -- cgit v1.2.1