diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-14 01:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-14 12:22:24 (GMT) |
commit | 715691124240b696c8be1d7cd6ce6dbb09381c67 (patch) | |
tree | 85829a543a5d041e7329ae2e447b3d261ea640b8 /Source/cmGeneratorTarget.cxx | |
parent | 2da778664d3e99ada4e67a5a1b9d377f92a9f75f (diff) | |
download | CMake-715691124240b696c8be1d7cd6ce6dbb09381c67.zip CMake-715691124240b696c8be1d7cd6ce6dbb09381c67.tar.gz CMake-715691124240b696c8be1d7cd6ce6dbb09381c67.tar.bz2 |
cmIsOn: add overload accepting const std::string*
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 9e6f995..46615d3 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -854,9 +854,8 @@ bool cmGeneratorTarget::IsIPOEnabled(std::string const& lang, std::string const& config) const { cmProp feature = this->GetFeature("INTERPROCEDURAL_OPTIMIZATION", config); - const bool result = feature && cmIsOn(*feature); - if (!result) { + if (!cmIsOn(feature)) { // 'INTERPROCEDURAL_OPTIMIZATION' is off, no need to check policies return false; } @@ -1001,7 +1000,7 @@ bool cmGeneratorTarget::GetLanguageStandardRequired( { cmProp p = this->GetPropertyWithPairedLanguageSupport(lang, "_STANDARD_REQUIRED"); - return p && cmIsOn(*p); + return cmIsOn(p); } void cmGeneratorTarget::GetModuleDefinitionSources( |