cmNonempty: Convenience inlines to check for non-empty string

This commit is contained in:
Vitaly Stakhovsky
2020-07-14 15:00:00 -04:00
parent 2da778664d
commit eaad8072ee
19 changed files with 69 additions and 58 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
// Prepend with the emulator when cross compiling if required.
cmProp emulator = target->GetProperty("CROSSCOMPILING_EMULATOR");
if (emulator != nullptr && !emulator->empty()) {
if (cmNonempty(emulator)) {
std::vector<std::string> emulatorWithArgs = cmExpandedList(*emulator);
std::string emulatorExe(emulatorWithArgs[0]);
cmSystemTools::ConvertToUnixSlashes(emulatorExe);