Reimplement code. Since a custom command is very flexible and might be extended in the future, make all arguments prefixed with arg type, make ordering irrelevant and potentially all args optional.

This commit is contained in:
Sebastien Barre
2001-11-09 10:33:22 -05:00
parent 438676de38
commit 6b5e54744c
2 changed files with 101 additions and 49 deletions

View File

@@ -67,8 +67,9 @@ public:
virtual const char* GetFullDocumentation()
{
return
"ADD_CUSTOM_COMMAND(source, command ARGS [args] DEPENDS [depends] "
"OUTPUTS [outputs] target)\nAdd a custom command.";
"ADD_CUSTOM_COMMAND([SOURCE source] [COMMAND command] [TARGET target] "
"[ARGS [args...]] [DEPENDS [depends...]] [OUTPUTS [outputs...]])\n"
"Add a custom command.";
}
cmTypeMacro(cmAddCustomCommandCommand, cmCommand);