[cmake-commits] king committed cmIfCommand.cxx 1.70 1.71 cmIfCommand.h 1.38 1.39

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Oct 23 17:14:22 EDT 2006


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv10402/Source

Modified Files:
	cmIfCommand.cxx cmIfCommand.h 
Log Message:
ENH: Remove old IF(FILE_IS_NEWER) syntax.  It was never in a release anyway.


Index: cmIfCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.cxx,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- cmIfCommand.cxx	23 Oct 2006 17:37:24 -0000	1.70
+++ cmIfCommand.cxx	23 Oct 2006 21:14:19 -0000	1.71
@@ -289,29 +289,6 @@
         IncrementArguments(newArgs,argP1,argP2);
         reducible = 1;
         }
-      // is file A newer than file B
-      if (*arg == "FILE_IS_NEWER" &&
-          argP1  != newArgs.end() && argP2  != newArgs.end())
-        {
-        int fileIsNewer=0;
-        bool success=cmSystemTools::FileTimeCompare((argP1)->c_str(),
-                                                    (argP2)->c_str(),
-                                                    &fileIsNewer);
-        if(success==false || fileIsNewer==1 || fileIsNewer==0)
-          {
-          *arg = "1";
-          }
-        else 
-          {
-          *arg = "0";
-          }
-
-        newArgs.erase(argP2);
-        newArgs.erase(argP1);
-        argP1 = arg;
-        IncrementArguments(newArgs,argP1,argP2);
-        reducible = 1;
-        }
       // does a command exist
       if (*arg == "COMMAND" && argP1  != newArgs.end())
         {

Index: cmIfCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- cmIfCommand.h	23 Oct 2006 17:37:24 -0000	1.38
+++ cmIfCommand.h	23 Oct 2006 21:14:19 -0000	1.39
@@ -129,7 +129,6 @@
       "  IF(EXISTS directory-name)\n"
       "True if the named file or directory exists.  "
       "Behavior is well-defined only for full paths.\n"
-      "  IF(FILE_IS_NEWER file1 file2)\n"
       "  IF(file1 IS_NEWER_THAN file2)\n"
       "True if file1 is newer than file2 or if one of the two files "
       "doesn't exist. "



More information about the Cmake-commits mailing list