diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2020-06-18 22:42:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-22 13:22:38 (GMT) |
commit | e43486a63919b64fd2eef5d60c9fca1cea83ca94 (patch) | |
tree | 6ce634c706e59a0ac89a7e0cc8d2b6c432392d1c /Source/cmGeneratorTarget.cxx | |
parent | 01fdd421bbd7c3c1d37fd61bfaf0cfe5a756af71 (diff) | |
download | CMake-e43486a63919b64fd2eef5d60c9fca1cea83ca94.zip CMake-e43486a63919b64fd2eef5d60c9fca1cea83ca94.tar.gz CMake-e43486a63919b64fd2eef5d60c9fca1cea83ca94.tar.bz2 |
cmGeneratorTarget: Clarify name of language property lookup helper
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 1f66a9f..d537be7 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -959,16 +959,17 @@ cmProp cmGeneratorTarget::GetLanguageStandard(std::string const& lang, return this->Target->GetProperty(cmStrCat(lang, "_STANDARD")); } -cmProp cmGeneratorTarget::GetLanguageStandardProperty(std::string const& lang, - const char* suffix) const +cmProp cmGeneratorTarget::GetPropertyWithPairedLanguageSupport( + std::string const& lang, const char* suffix) const { cmProp propertyValue = this->Target->GetProperty(cmStrCat(lang, suffix)); if (propertyValue == nullptr) { // Check if we should use the value set by another language. if (lang == "OBJC") { - propertyValue = this->GetLanguageStandardProperty("C", suffix); + propertyValue = this->GetPropertyWithPairedLanguageSupport("C", suffix); } else if (lang == "OBJCXX" || lang == "CUDA") { - propertyValue = this->GetLanguageStandardProperty("CXX", suffix); + propertyValue = + this->GetPropertyWithPairedLanguageSupport("CXX", suffix); } } return propertyValue; @@ -976,13 +977,14 @@ cmProp cmGeneratorTarget::GetLanguageStandardProperty(std::string const& lang, cmProp cmGeneratorTarget::GetLanguageExtensions(std::string const& lang) const { - return this->GetLanguageStandardProperty(lang, "_EXTENSIONS"); + return this->GetPropertyWithPairedLanguageSupport(lang, "_EXTENSIONS"); } bool cmGeneratorTarget::GetLanguageStandardRequired( std::string const& lang) const { - cmProp p = this->GetLanguageStandardProperty(lang, "_STANDARD_REQUIRED"); + cmProp p = + this->GetPropertyWithPairedLanguageSupport(lang, "_STANDARD_REQUIRED"); return p && cmIsOn(*p); } |