summaryrefslogtreecommitdiffstats
path: root/Source/cmAddDependenciesCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-03 20:10:59 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-03 20:10:59 (GMT)
commit674fdf8771fdb5af05643ee80259b8eeaf7bcf22 (patch)
tree907ccbdc4d153c1e5b11f9c1bec78fd821b3f6fc /Source/cmAddDependenciesCommand.h
parentb8c789a5da110f28af2a380d1f4281084e92379e (diff)
downloadCMake-674fdf8771fdb5af05643ee80259b8eeaf7bcf22.zip
CMake-674fdf8771fdb5af05643ee80259b8eeaf7bcf22.tar.gz
CMake-674fdf8771fdb5af05643ee80259b8eeaf7bcf22.tar.bz2
ENH: Clarified documentation further.
Diffstat (limited to 'Source/cmAddDependenciesCommand.h')
-rw-r--r--Source/cmAddDependenciesCommand.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/cmAddDependenciesCommand.h b/Source/cmAddDependenciesCommand.h
index 51b1cd5..2e83af0 100644
--- a/Source/cmAddDependenciesCommand.h
+++ b/Source/cmAddDependenciesCommand.h
@@ -51,7 +51,7 @@ public:
*/
virtual const char* GetTerseDocumentation()
{
- return "Add an dependency to a target";
+ return "Add a dependency between top-level targets.";
}
/**
@@ -62,10 +62,15 @@ public:
return
" ADD_DEPENDENCIES(target-name depend-target1\n"
" depend-target2 ...)\n"
- "Add a dependency to a target. This is only used to add dependencies "
- "between targets that cannot be inferred from the library/executable "
- "links that are specified. Regular build dependencies are "
- "handled automatically.";
+ "Make a top-level target depend on other top-level targets. A "
+ "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. "
+ "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 "
+ "SET_SOURCE_FILES_PROPERTIES to add file-level dependencies to object "
+ "files.";
}
cmTypeMacro(cmAddDependenciesCommand, cmCommand);