[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.5 1.5.2.1

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Jan 28 16:48:21 EST 2010


Update of /cvsroot/CMake/CMake/Tests/TarTest
In directory public:/mounts/ram/cvs-serv23913/Tests/TarTest

Modified Files:
      Tag: CMake-2-8
	CMakeLists.txt 
Log Message:
CMake 2.8.1-rc1


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TarTest/CMakeLists.txt,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C 2 -d -r1.5 -r1.5.2.1
*** CMakeLists.txt	25 Mar 2008 15:27:12 -0000	1.5
--- CMakeLists.txt	28 Jan 2010 21:48:18 -0000	1.5.2.1
***************
*** 29,35 ****
--- 29,45 ----
  ENDIF(UNIX)
  
+ # cleanup first in case there are files left from previous runs
+ # if the umask is odd on the machine it might create files that
+ # are not automatically over written.  These tests are run
+ # each time the configure step is run.
+ FILE(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/test_tar.tar")
+ FILE(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/test_tgz.tgz")
+ FILE(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/test_output_tar")
+ FILE(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/test_output_tgz")
+ 
  MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/test_output_tar")
  MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/test_output_tgz")
  
+ 
  # Run tests
  EXEC_TAR_COMMAND("${CMAKE_CURRENT_BINARY_DIR}" "cvf \"${CMAKE_CURRENT_BINARY_DIR}/test_tar.tar\" tar_dir")



More information about the Cmake-commits mailing list