[cmake-commits] hoffman committed CMakeLists.txt 1.15 1.15.2.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 13 10:52:18 EDT 2006
Update of /cvsroot/CMake/CMake/Tests/StringFileTest
In directory public:/mounts/ram/cvs-serv31017/Tests/StringFileTest
Modified Files:
Tag: CMake-2-4
CMakeLists.txt
Log Message:
ENH: merge changes from the main tree to the 2.4 branch
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- CMakeLists.txt 21 Mar 2006 21:03:19 -0000 1.15
+++ CMakeLists.txt 13 Oct 2006 14:52:16 -0000 1.15.2.1
@@ -75,10 +75,16 @@
FILE(APPEND "${file}" "#define ${var} \"${${var}}\"\n")
ENDFOREACH(var)
+# Verify that the file was created recently.
+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")
+
# Test configuration of the string
SET(TEST_DEFINED 123)
SET(TEST_NOT_DEFINED)
-STRING(CONFIGURE "${infile}" infile @ONLY)
+STRING(CONFIGURE "${infile}" infile+-/out @ONLY)
+SET(infile "${infile+-/out}")
# Write include file to a file
STRING(REGEX REPLACE "includefile" "${file}" outfile "${infile}")
More information about the Cmake-commits
mailing list