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.
This commit is contained in:
Brad King
2010-12-08 17:05:23 -05:00
parent e30a775f68
commit ced1d5eccd
3 changed files with 5 additions and 8 deletions
+1
View File
@@ -158,6 +158,7 @@ public:
/** Translate a dependency as given in CMake code to the name to
appear in a generated build file. If the given name is that of
a utility target, returns false. If the given name is that of
a CMake target it will be transformed to the real output
location of that target for the given configuration. If the
given name is the full path to a file it will be returned.