[cmake-commits] alex committed cmTarget.cxx 1.151 1.152

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jun 27 15:42:35 EDT 2007


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

Modified Files:
	cmTarget.cxx 
Log Message:

ENH: here we really want only non-imported targets, as discussed with Brad

Alex


Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- cmTarget.cxx	21 Jun 2007 17:08:22 -0000	1.151
+++ cmTarget.cxx	27 Jun 2007 19:42:33 -0000	1.152
@@ -538,9 +538,9 @@
     util = cmSystemTools::GetFilenameWithoutLastExtension(util);
     }
 
-  // Check for a target with this name.
+  // Check for a non-imported target with this name.
   if(cmTarget* t =
-     this->GlobalGenerator->FindTarget(0, util.c_str(), true))
+     this->GlobalGenerator->FindTarget(0, util.c_str(), false))
     {
     // If we find the target and the dep was given as a full path,
     // then make sure it was not a full path to something else, and



More information about the Cmake-commits mailing list