diff options
Diffstat (limited to 'Source/cmIncludeRegularExpressionCommand.cxx')
-rw-r--r-- | Source/cmIncludeRegularExpressionCommand.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmIncludeRegularExpressionCommand.cxx b/Source/cmIncludeRegularExpressionCommand.cxx index 39a1a65..2ccc556 100644 --- a/Source/cmIncludeRegularExpressionCommand.cxx +++ b/Source/cmIncludeRegularExpressionCommand.cxx @@ -43,13 +43,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // cmIncludeRegularExpressionCommand bool cmIncludeRegularExpressionCommand::InitialPass(std::vector<std::string>& args) { - if(args.size() != 1) + if((args.size() < 1) || (args.size() > 2)) { this->SetError("called with incorrect number of arguments"); return false; } m_Makefile->SetIncludeRegularExpression(args[0].c_str()); + if(args.size() > 1) + { + m_Makefile->SetComplainRegularExpression(args[1].c_str()); + } + return true; } |