mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
cmNonempty: Convenience inlines to check for non-empty string
This commit is contained in:
@@ -239,7 +239,7 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkRule(
|
||||
std::string launcher;
|
||||
const char* val = this->GetLocalGenerator()->GetRuleLauncher(
|
||||
this->GetGeneratorTarget(), "RULE_LAUNCH_LINK");
|
||||
if (val && *val) {
|
||||
if (cmNonempty(val)) {
|
||||
launcher = cmStrCat(val, ' ');
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile,
|
||||
std::string launcher;
|
||||
const char* val = this->GetLocalGenerator()->GetRuleLauncher(
|
||||
this->GetGeneratorTarget(), "RULE_LAUNCH_LINK");
|
||||
if (val && *val) {
|
||||
if (cmNonempty(val)) {
|
||||
launcher = cmStrCat(val, ' ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user