GHS: Compute include directories consistently with other generators

All generators use cmLocalGenerator::GetIncludeDirectories to construct
the final list of include directories for a target.
This commit is contained in:
Brad King 2016-05-24 09:37:09 -04:00
parent 7807b3a9db
commit a896043bac
1 changed files with 4 additions and 2 deletions

View File

@ -322,8 +322,10 @@ void cmGhsMultiTargetGenerator::WriteCompilerDefinitions(
void cmGhsMultiTargetGenerator::WriteIncludes(const std::string& config,
const std::string& language)
{
std::vector<std::string> includes =
this->GeneratorTarget->GetIncludeDirectories(config, language);
std::vector<std::string> includes;
this->LocalGenerator->GetIncludeDirectories(includes, this->GeneratorTarget,
language, config);
for (std::vector<std::string>::const_iterator includes_i = includes.begin();
includes_i != includes.end(); ++includes_i) {
*this->GetFolderBuildStreams() << " -I\"" << *includes_i << "\""