diff options
author | Brad King <brad.king@kitware.com> | 2001-06-21 19:02:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-06-21 19:02:52 (GMT) |
commit | cf829929649c3dc7871e653de33580679c2db558 (patch) | |
tree | 67d62b23de64b1845c7601a845d53591c96d8e32 /Source/cmIncludeRegularExpressionCommand.cxx | |
parent | 8ffe832e9bc22deddef38eed1c19fe437b5d031f (diff) | |
download | CMake-cf829929649c3dc7871e653de33580679c2db558.zip CMake-cf829929649c3dc7871e653de33580679c2db558.tar.gz CMake-cf829929649c3dc7871e653de33580679c2db558.tar.bz2 |
ENH: Extended INCLUDE_REGULAR_EXPRESSION to allow selective complaints about missing dependencies.
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; } |