| 285 | } |
| 286 | |
| 287 | void cmNinjaTargetGenerator::AddIncludeFlags(std::string& languageFlags, |
| 288 | std::string const& language, |
| 289 | std::string const& config) |
| 290 | { |
| 291 | std::vector<std::string> includes; |
| 292 | this->LocalGenerator->GetIncludeDirectories(includes, this->GeneratorTarget, |
| 293 | language, config); |
| 294 | // Add include directory flags. |
| 295 | std::string includeFlags = this->LocalGenerator->GetIncludeFlags( |
| 296 | includes, this->GeneratorTarget, language, config, false); |
| 297 | if (this->GetGlobalGenerator()->IsGCCOnWindows()) { |
| 298 | std::replace(includeFlags.begin(), includeFlags.end(), '\\', '/'); |
| 299 | } |
| 300 | |
| 301 | this->LocalGenerator->AppendFlags(languageFlags, includeFlags); |
| 302 | } |
| 303 | |
| 304 | // TODO: Refactor with |
| 305 | // void cmMakefileTargetGenerator::WriteTargetLanguageFlags(). |
no test coverage detected