diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-21 17:08:22 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-21 17:08:22 (GMT) |
commit | e126db1f71f84125ebabcab73f84013347ab21cd (patch) | |
tree | 2fd38c7cfd7f0eb3500d1879efd05385d6624859 /Source/cmTarget.cxx | |
parent | 6e5b543c52bc6f5ac8f50cbd08e4a69dcd374fb3 (diff) | |
download | CMake-e126db1f71f84125ebabcab73f84013347ab21cd.zip CMake-e126db1f71f84125ebabcab73f84013347ab21cd.tar.gz CMake-e126db1f71f84125ebabcab73f84013347ab21cd.tar.bz2 |
BUG: handle dependencies to imported targets better: don't create a
dependency if the target name was not listed in DEPENDS, if it was listed in
DEPENDS, create a dependency to the file
Seems to work, but have to check with Brad.
Alex
Diffstat (limited to 'Source/cmTarget.cxx')
-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 46d4273..c0e4484 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 non-imported target with this name. + // Check for a target with this name. if(cmTarget* t = - this->GlobalGenerator->FindTarget(0, util.c_str(), false)) + this->GlobalGenerator->FindTarget(0, util.c_str(), true)) { // 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 |