diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx index fb7af8baf..04e3b648e 100644 --- a/Source/cmAddCustomTargetCommand.cxx +++ b/Source/cmAddCustomTargetCommand.cxx @@ -21,7 +21,7 @@ bool cmAddCustomTargetCommand::InitialPass(std::vector const& args) { bool all = false; - if(args.size() < 2 ) + if(args.size() < 1 ) { this->SetError("called with incorrect number of arguments"); return false;