summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-24 13:37:09 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-24 15:40:35 (GMT)
commita896043bacdd0cb2597fa10074302ed8a9a5e138 (patch)
treebf722b16e813d7604fe712734a58236a72566dcb /Source
parent7807b3a9db35acd683fd82c6d902272991a9789a (diff)
downloadCMake-a896043bacdd0cb2597fa10074302ed8a9a5e138.zip
CMake-a896043bacdd0cb2597fa10074302ed8a9a5e138.tar.gz
CMake-a896043bacdd0cb2597fa10074302ed8a9a5e138.tar.bz2
GHS: Compute include directories consistently with other generators
All generators use cmLocalGenerator::GetIncludeDirectories to construct the final list of include directories for a target.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGhsMultiTargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index 5e13d4c..8565fdb 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<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 << "\""