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!
This commit is contained in:
David Cole 2012-02-22 16:31:00 -05:00
parent bada88e8e4
commit eabc9b0bc5
1 changed files with 4 additions and 1 deletions

View File

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