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

Alex
This commit is contained in:
Alexander Neundorf 2007-06-27 15:42:33 -04:00
parent d44bd2551c
commit cfe9fda9fe
1 changed files with 2 additions and 2 deletions

View File

@ -538,9 +538,9 @@ bool cmTargetTraceDependencies::IsUtility(std::string const& dep)
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