[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.27 1.28

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 15 09:58:15 EDT 2009


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

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Create file(RENAME) command mode

This creates command "file(RENAME <oldname> <newname>)" to rename a file
or directory within a single disk volume.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v
retrieving revision 1.27
retrieving revision 1.28
diff -C 2 -d -r1.27 -r1.28
*** CMakeLists.txt	17 Mar 2009 19:10:15 -0000	1.27
--- CMakeLists.txt	15 Apr 2009 13:58:13 -0000	1.28
***************
*** 185,189 ****
  # Write include file to a file
  STRING(REGEX REPLACE "includefile" "${file}" outfile "${infile}")
! FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h" "${outfile}")
  
  # Test file glob
--- 185,191 ----
  # Write include file to a file
  STRING(REGEX REPLACE "includefile" "${file}" outfile "${infile}")
! FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp" "${outfile}")
! FILE(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
!             "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h")
  
  # Test file glob



More information about the Cmake-commits mailing list