浏览代码

Ninja: CMake: Adapt Ninja generator for per-target include dirs

The confluence of the ninja-generator and target-include-directories
branches conspired to produce a nice little compiler error when
they were both merged into 'next'...

Yay for Continuous dashboards!
David Cole 13 年之前
父节点
当前提交
eabc9b0bc5
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Source/cmNinjaTargetGenerator.cxx

+ 4 - 1
Source/cmNinjaTargetGenerator.cxx

@@ -145,8 +145,11 @@ cmNinjaTargetGenerator::ComputeFlagsForObject(cmSourceFile *source,
   // TODO: Handle response file.
   // Add include directory flags.
   {
+  std::vector<std::string> includes;
+  this->LocalGenerator->GetIncludeDirectories(includes, this->Target,
+                                              language.c_str());
   std::string includeFlags =
-    this->LocalGenerator->GetIncludeFlags(language.c_str(), false);
+    this->LocalGenerator->GetIncludeFlags(includes, language.c_str(), false);
   this->LocalGenerator->AppendFlags(flags, includeFlags.c_str());
   }