[Cmake-commits] [cmake-commits] hoffman committed cmListCommand.cxx 1.20 1.21

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 23 09:56:56 EDT 2008


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

Modified Files:
	cmListCommand.cxx 
Log Message:
ENH: handle empty lists correctly


Index: cmListCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmListCommand.cxx,v
retrieving revision 1.20
retrieving revision 1.21
diff -C 2 -d -r1.20 -r1.21
*** cmListCommand.cxx	21 Apr 2008 20:57:11 -0000	1.20
--- cmListCommand.cxx	23 Apr 2008 13:56:54 -0000	1.21
***************
*** 104,107 ****
--- 104,112 ----
      return false;
      }
+   // if the size of the list 
+   if(listString.size() == 0)
+     {
+     return true;
+     }
    // expand the variable into a list
    cmSystemTools::ExpandListArgument(listString, list, true);



More information about the Cmake-commits mailing list