diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx index 9b181e958..5a18e072f 100644 --- a/Source/cmMakeDepend.cxx +++ b/Source/cmMakeDepend.cxx @@ -95,7 +95,9 @@ void cmMakeDepend::SetMakefile(const cmMakefile* makefile) for(std::vector::const_iterator j = includes.begin(); j != includes.end(); ++j) { - this->AddSearchPath(j->c_str()); + std::string path = *j; + m_Makefile->ExpandVariablesInString(path); + this->AddSearchPath(path.c_str()); } }