[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.29 1.30

cmake-commits at cmake.org cmake-commits at cmake.org
Wed May 13 10:30:26 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/StringFileTest
In directory public:/mounts/ram/cvs-serv8276/Tests/StringFileTest

Modified Files:
	CMakeLists.txt 
Log Message:
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.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v
retrieving revision 1.29
retrieving revision 1.30
diff -C 2 -d -r1.29 -r1.30
*** CMakeLists.txt	29 Apr 2009 17:13:29 -0000	1.29
--- CMakeLists.txt	13 May 2009 14:30:22 -0000	1.30
***************
*** 192,197 ****
  FILE(COPY .
    DESTINATION src
!   FILE_PERMISSIONS OWNER_READ OWNER_WRITE
!   DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE # test no OWNER_WRITE
    FILES_MATCHING PATTERN *.cxx # Only copy the main source file
    REGEX /src$ EXCLUDE # Block recursion for in-source build
--- 192,197 ----
  FILE(COPY .
    DESTINATION src
!   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



More information about the Cmake-commits mailing list