diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index cbc7e02995..f4a22ed7dd 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -51,7 +51,7 @@ void cmMakeDepend::SetMakefile(cmMakefile* makefile) this->IncludeFileRegularExpression.compile( this->Makefile->GetIncludeRegularExpression()); this->ComplainFileRegularExpression.compile( - this->Makefile->ComplainFileRegularExpression.c_str()); + this->Makefile->GetComplainRegularExpression()); // Now extract any include paths from the targets std::set uniqueIncludes;