From a896043bacdd0cb2597fa10074302ed8a9a5e138 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 24 May 2016 09:37:09 -0400 Subject: [PATCH] GHS: Compute include directories consistently with other generators All generators use cmLocalGenerator::GetIncludeDirectories to construct the final list of include directories for a target. --- Source/cmGhsMultiTargetGenerator.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx index 5e13d4cad..8565fdb9c 100644 --- a/Source/cmGhsMultiTargetGenerator.cxx +++ b/Source/cmGhsMultiTargetGenerator.cxx @@ -322,8 +322,10 @@ void cmGhsMultiTargetGenerator::WriteCompilerDefinitions( void cmGhsMultiTargetGenerator::WriteIncludes(const std::string& config, const std::string& language) { - std::vector includes = - this->GeneratorTarget->GetIncludeDirectories(config, language); + std::vector includes; + this->LocalGenerator->GetIncludeDirectories(includes, this->GeneratorTarget, + language, config); + for (std::vector::const_iterator includes_i = includes.begin(); includes_i != includes.end(); ++includes_i) { *this->GetFolderBuildStreams() << " -I\"" << *includes_i << "\""