[cmake-commits] king committed CMakeLists.txt 1.17 1.18

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Oct 23 13:36:56 EDT 2006


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

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Patch from Alex to provide nicer syntax for FILE_IS_NEWER.  Using name IS_NEWER_THAN so old syntax will continue to work.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- CMakeLists.txt	25 Sep 2006 14:05:07 -0000	1.17
+++ CMakeLists.txt	23 Oct 2006 17:36:53 -0000	1.18
@@ -79,6 +79,9 @@
 IF(NOT FILE_IS_NEWER "${file}" "${CMAKE_CURRENT_SOURCE_DIR}/InputFile.h.in")
   MESSAGE(FATAL_ERROR "IF(FILE_IS_NEWER) does not seem to work.")
 ENDIF(NOT FILE_IS_NEWER "${file}" "${CMAKE_CURRENT_SOURCE_DIR}/InputFile.h.in")
+IF(NOT "${file}" IS_NEWER_THAN "${CMAKE_CURRENT_SOURCE_DIR}/InputFile.h.in")
+  MESSAGE(FATAL_ERROR "IF(FILE_IS_NEWER) does not seem to work.")
+ENDIF(NOT "${file}" IS_NEWER_THAN "${CMAKE_CURRENT_SOURCE_DIR}/InputFile.h.in")
 
 # Test configuration of the string
 SET(TEST_DEFINED 123)



More information about the Cmake-commits mailing list