diff options
-rw-r--r-- | Source/cmTarget.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c0e4484..46d4273 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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 |