[Cmake-commits] [cmake-commits] king committed cmIfCommand.cxx 1.99 1.100 cmIfCommand.h 1.58 1.59

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 21 13:11:20 EDT 2009


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

Modified Files:
	cmIfCommand.cxx cmIfCommand.h 
Log Message:
Add IS_SYMLINK test to if command


Index: cmIfCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.cxx,v
retrieving revision 1.99
retrieving revision 1.100
diff -C 2 -d -r1.99 -r1.100
*** cmIfCommand.cxx	2 Oct 2009 18:36:47 -0000	1.99
--- cmIfCommand.cxx	21 Oct 2009 17:11:16 -0000	1.100
***************
*** 509,512 ****
--- 509,519 ----
            reducible, arg, newArgs, argP1, argP2);
          }
+       // does a symlink with this name exist
+       if (*arg == "IS_SYMLINK" && argP1  != newArgs.end())
+         {
+         HandlePredicate(
+           cmSystemTools::FileIsSymlink((argP1)->c_str()),
+           reducible, arg, newArgs, argP1, argP2);
+         }
        // is the given path an absolute path ?
        if (*arg == "IS_ABSOLUTE" && argP1  != newArgs.end())

Index: cmIfCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -C 2 -d -r1.58 -r1.59
*** cmIfCommand.h	28 Sep 2009 15:42:45 -0000	1.58
--- cmIfCommand.h	21 Oct 2009 17:11:16 -0000	1.59
***************
*** 151,154 ****
--- 151,157 ----
        "True if the given name is a directory.  "
        "Behavior is well-defined only for full paths.\n"
+       "  if(IS_SYMLINK file-name)\n"
+       "True if the given name is a symbolic link.  "
+       "Behavior is well-defined only for full paths.\n"
        "  if(IS_ABSOLUTE path)\n"
        "True if the given path is an absolute path.\n"



More information about the Cmake-commits mailing list