summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-04-21 15:36:31 (GMT)
committerBrad King <brad.king@kitware.com>2004-04-21 15:36:31 (GMT)
commitbfd79e99e613e132cff002a85fd583735eb40855 (patch)
tree45ae7b214fae7f0db119bbf3547e95d0c44667f6 /Source/cmAddCustomTargetCommand.cxx
parent78803c01ea0cc13c38a0c208a9012897ece5f47f (diff)
downloadCMake-bfd79e99e613e132cff002a85fd583735eb40855.zip
CMake-bfd79e99e613e132cff002a85fd583735eb40855.tar.gz
CMake-bfd79e99e613e132cff002a85fd583735eb40855.tar.bz2
BUG: Fixed check of number of arguments.
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index fb7af8b..04e3b64 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -21,7 +21,7 @@ bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string> const& args)
{
bool all = false;
- if(args.size() < 2 )
+ if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
return false;