ENH: Extended INCLUDE_REGULAR_EXPRESSION to allow selective complaints about missing dependencies.

This commit is contained in:
Brad King
2001-06-21 15:02:52 -04:00
parent 8ffe832e9b
commit cf82992964
7 changed files with 53 additions and 38 deletions

View File

@@ -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;
}