summaryrefslogtreecommitdiff
path: root/Source/cmAddDependenciesCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-19 13:36:11 -0500
committerBrad King <brad.king@kitware.com>2010-11-19 17:19:21 -0500
commite01cce28694201342adc97825982ed66fc52af65 (patch)
treeef4573c4112650f78df2ebb66665185118a8bcd6 /Source/cmAddDependenciesCommand.h
parentbc7395c096be40f8a0fecbab4aa7539c05898ef2 (diff)
downloadcmake-e01cce28694201342adc97825982ed66fc52af65.tar.gz
Allow add_dependencies() on imported targets (#10395)
Imported targets do not themselves build, but we can follow dependencies through them to find real targets. This allows imported targets to depend on custom targets that provide the underlying files at build time.
Diffstat (limited to 'Source/cmAddDependenciesCommand.h')
-rw-r--r--Source/cmAddDependenciesCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmAddDependenciesCommand.h b/Source/cmAddDependenciesCommand.h
index 6a981c36e5..fee011c226 100644
--- a/Source/cmAddDependenciesCommand.h
+++ b/Source/cmAddDependenciesCommand.h
@@ -62,6 +62,8 @@ public:
"top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, "
"or ADD_CUSTOM_TARGET. Adding dependencies with this command "
"can be used to make sure one target is built before another target. "
+ "Dependencies added to an IMPORTED target are followed transitively "
+ "in its place since the target itself does not build. "
"See the DEPENDS option of ADD_CUSTOM_TARGET "
"and ADD_CUSTOM_COMMAND for adding file-level dependencies in custom "
"rules. See the OBJECT_DEPENDS option in "