diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:45:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-10 21:45:19 (GMT) |
commit | ab64db6ee84604c361a2d6f279398f7c9d3247f5 (patch) | |
tree | a31d32de988fa6c2611c3d0ff5f79394e70c19aa /Source | |
parent | a93038c52af110e1bf08968869c3ba868c582bd5 (diff) | |
download | CMake-ab64db6ee84604c361a2d6f279398f7c9d3247f5.zip CMake-ab64db6ee84604c361a2d6f279398f7c9d3247f5.tar.gz CMake-ab64db6ee84604c361a2d6f279398f7c9d3247f5.tar.bz2 |
Allow target with no command
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmAddCustomTargetCommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmAddCustomTargetCommand.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index 9857049..c14264d 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -33,7 +33,7 @@ bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string> const& argsI std::string arguments; std::vector<std::string>::const_iterator s = args.begin(); ++s; // move past args[0] as it is already to be used - if (args.size() >= 3) + if (args.size() >= 2) { if (args[1] == "ALL") { diff --git a/Source/cmAddCustomTargetCommand.h b/Source/cmAddCustomTargetCommand.h index b7802c1..fbd34dc 100644 --- a/Source/cmAddCustomTargetCommand.h +++ b/Source/cmAddCustomTargetCommand.h @@ -66,8 +66,8 @@ public: virtual const char* GetFullDocumentation() { return - "ADD_CUSTOM_TARGET(Name [ALL] command arg arg arg ...)\n" - "The ALL option is optional. If it is specified it indicates that this target should be added to the Build all target."; + "ADD_CUSTOM_TARGET(Name [ALL] [ command arg arg arg ... ])\n" + "The ALL option is optional. If it is specified it indicates that this target should be added to the Build all target. The command and arguments are optional. If not specified, it will create an empy target. Command cannot be called ALL."; } cmTypeMacro(cmAddCustomTargetCommand, cmCommand); |