[Cmake-commits] [cmake-commits] hoffman committed cmComputeLinkInformation.cxx 1.38 1.39

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jul 29 10:51:48 EDT 2008


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

Modified Files:
	cmComputeLinkInformation.cxx 
Log Message:
ENH: do not depend on files that do not exist


Index: cmComputeLinkInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmComputeLinkInformation.cxx,v
retrieving revision 1.38
retrieving revision 1.39
diff -C 2 -d -r1.38 -r1.39
*** cmComputeLinkInformation.cxx	23 Jul 2008 16:59:14 -0000	1.38
--- cmComputeLinkInformation.cxx	29 Jul 2008 14:51:46 -0000	1.39
***************
*** 1363,1366 ****
--- 1363,1374 ----
                                                   std::string const& file)
  {
+   // Do not depend on things that do not exist.
+   std::vector<std::string>::iterator i =
+     std::find(this->Depends.begin(), this->Depends.end(), item);
+   if(i != this->Depends.end())
+     {
+     this->Depends.erase(i);
+     }
+ 
    // Tell the linker to search for the item and provide the proper
    // path for it.  Do not contribute to any CMP0003 warning (do not



More information about the Cmake-commits mailing list