mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-24 00:39:03 -05:00
cmNonempty: Convenience inlines to check for non-empty string
This commit is contained in:
@@ -218,7 +218,7 @@ void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
|
||||
|
||||
const char* val = this->LocalGenerator->GetRuleLauncher(
|
||||
this->GeneratorTarget, "RULE_LAUNCH_LINK");
|
||||
if (val && *val) {
|
||||
if (cmNonempty(val)) {
|
||||
launcher = cmStrCat(val, ' ');
|
||||
}
|
||||
|
||||
@@ -583,7 +583,7 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
|
||||
|
||||
const char* val = this->LocalGenerator->GetRuleLauncher(
|
||||
this->GeneratorTarget, "RULE_LAUNCH_LINK");
|
||||
if (val && *val) {
|
||||
if (cmNonempty(val)) {
|
||||
launcher = cmStrCat(val, ' ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user