summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-08 22:05:23 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-08 22:14:17 (GMT)
commitced1d5eccd4ae08a6431a5c163be3dd52ca9d59a (patch)
tree5a27f713d1b55ba4b4426730ff3f3c751afbc5a9 /Source/cmLocalGenerator.cxx
parente30a775f68ddae48ca6987fc2c21c07844a26804 (diff)
downloadCMake-ced1d5eccd4ae08a6431a5c163be3dd52ca9d59a.zip
CMake-ced1d5eccd4ae08a6431a5c163be3dd52ca9d59a.tar.gz
CMake-ced1d5eccd4ae08a6431a5c163be3dd52ca9d59a.tar.bz2
Skip file-level dependencies on custom targets (#11332)
A custom command may name a target created by add_custom_target in its DEPENDS field. Treat this case as a target-level dependency only since a custom target provides no standard file on which to add a file-level dependency.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 6b37eaf..b7d694c 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1878,10 +1878,9 @@ bool cmLocalGenerator::GetRealDependency(const char* inName,
break;
case cmTarget::UTILITY:
case cmTarget::GLOBAL_TARGET:
- // Depending on a utility target may not work but just trust
- // the user to have given a valid name.
- dep = inName;
- return true;
+ // A utility target has no file on which to depend. This was listed
+ // only to get the target-level dependency.
+ return false;
case cmTarget::INSTALL_FILES:
case cmTarget::INSTALL_PROGRAMS:
case cmTarget::INSTALL_DIRECTORY: