浏览代码

BUG: Need to expand variables in search paths in case it hasn't been done yet by the makefile.

Brad King 24 年之前
父节点
当前提交
7df455251b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmMakeDepend.cxx

+ 3 - 1
Source/cmMakeDepend.cxx

@@ -95,7 +95,9 @@ void cmMakeDepend::SetMakefile(const cmMakefile* makefile)
   for(std::vector<std::string>::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());
     }
 }