summaryrefslogtreecommitdiffstats
path: root/Source/cmGhsMultiTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-20 15:16:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-10-20 15:16:45 (GMT)
commit9afbb733ec2a55424e6c25c6afa7fdd14219d6b1 (patch)
treecf1f8a0124d239bb85b0c2f07afd19a6759a4520 /Source/cmGhsMultiTargetGenerator.cxx
parent5ec8064b76aca89b6e0274e53c272f298655b992 (diff)
parentd8f8940bc68f09e382320d1ffe36947ba880ae65 (diff)
downloadCMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.zip
CMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.tar.gz
CMake-9afbb733ec2a55424e6c25c6afa7fdd14219d6b1.tar.bz2
Merge topic 'use-generator-target'
d8f8940b cmGeneratorTarget: Move IsCFBundleOnApple from cmTarget. 7550879f cmGeneratorTarget: Move IsXCTestOnApple from cmTarget. 88d10d55 cmGeneratorTarget: Copy IsAppBundleOnApple from cmTarget. b5f5de70 cmGeneratorTarget: Copy IsFrameworkOnApple from cmTarget. 8e20ea6e cmGeneratorTarget: Move IsLinkable from cmTarget. a527abf0 Xcode: Port internal API to cmGeneratorTarget. eb3be7d6 cmGeneratorTarget: Move GetExportName from cmTarget. d231c31b Export: Port internal API to cmGeneratorTarget. e6661282 Export: Port internal utility to cmGeneratorTarget. 2b9cc1e2 Export: Port some API to cmGlobalGenerator. 97062ac2 cmInstallTargetGenerator: Port GetInstallFilename to cmGeneratorTarget. 6a72b3c8 Export: Port interface to cmGeneratorTarget. 1293c156 cmExportTryCompileFileGenerator: Port to cmGeneratorTarget. 381e7afd cmExportSet: Store a cmGeneratorTarget. 65911cae cmGlobalGenerator: Compute export() related classes early. 37ab74a6 cmLocalGenerator: Port PList handling to cmGeneratorTarget. ...
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r--Source/cmGhsMultiTargetGenerator.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index c687ba7..019cdd1 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -265,8 +265,11 @@ void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const &config,
this->LocalGenerator->AddLanguageFlags(
flags, lang + std::string("_GHS_KERNEL"), config);
}
- this->LocalGenerator->AddCMP0018Flags(flags, this->Target, lang, config);
- this->LocalGenerator->AddVisibilityPresetFlags(flags, this->Target, lang);
+ this->LocalGenerator->AddCMP0018Flags(flags, this->GeneratorTarget,
+ lang, config);
+ this->LocalGenerator->AddVisibilityPresetFlags(flags,
+ this->GeneratorTarget,
+ lang);
// Append old-style preprocessor definition flags.
if (std::string(" ") != std::string(this->Makefile->GetDefineFlags()))
@@ -276,7 +279,8 @@ void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const &config,
}
// Add target-specific flags.
- this->LocalGenerator->AddCompileOptions(flags, this->Target, lang, config);
+ this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
+ lang, config);
std::map<std::string, std::string>::value_type entry(language, flags);
i = this->FlagsByLanguage.insert(entry).first;
@@ -299,7 +303,8 @@ std::string cmGhsMultiTargetGenerator::GetDefines(const std::string &language,
}
// Add preprocessor definitions for this target and configuration.
- this->LocalGenerator->AddCompileDefinitions(defines, this->Target, config,
+ this->LocalGenerator->AddCompileDefinitions(defines,
+ this->GeneratorTarget, config,
language);
std::string definesString;