diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-09 20:19:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-17 15:30:38 (GMT) |
commit | 3e8ef6427393546c77da1b74234311d3b60edd98 (patch) | |
tree | dc1463cfd39c1eac2d292700794ac2a32fe54f2b /Source/cmGhsMultiTargetGenerator.cxx | |
parent | cfb2f7508af637c9c35758fbd5dac6c8cb679bdb (diff) | |
download | CMake-3e8ef6427393546c77da1b74234311d3b60edd98.zip CMake-3e8ef6427393546c77da1b74234311d3b60edd98.tar.gz CMake-3e8ef6427393546c77da1b74234311d3b60edd98.tar.bz2 |
cmLocalGenerator: Port some API to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.cxx | 13 |
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; |