diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-14 19:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-14 19:18:59 (GMT) |
commit | eaad8072eefb9cbb7bf60d9753492e6fb604fd09 (patch) | |
tree | 3c50fd113dcc289e557cdc06062e6db41f8de9f8 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 2da778664d3e99ada4e67a5a1b9d377f92a9f75f (diff) | |
download | CMake-eaad8072eefb9cbb7bf60d9753492e6fb604fd09.zip CMake-eaad8072eefb9cbb7bf60d9753492e6fb604fd09.tar.gz CMake-eaad8072eefb9cbb7bf60d9753492e6fb604fd09.tar.bz2 |
cmNonempty: Convenience inlines to check for non-empty string
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index c688da2..b31d069 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -509,7 +509,7 @@ std::string cmGlobalVisualStudioGenerator::GetStartupProjectName( cmLocalGenerator const* root) const { cmProp n = root->GetMakefile()->GetProperty("VS_STARTUP_PROJECT"); - if (n && !n->empty()) { + if (cmNonempty(n)) { std::string startup = *n; if (this->FindTarget(startup)) { return startup; @@ -810,7 +810,7 @@ bool cmGlobalVisualStudioGenerator::TargetIsFortranOnly( // a target with none of its own sources, e.g. when also using // object libraries. cmProp linkLang = gt->GetProperty("LINKER_LANGUAGE"); - if (linkLang && !linkLang->empty()) { + if (cmNonempty(linkLang)) { languages.insert(*linkLang); } |