mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
cmNonempty: Convenience inlines to check for non-empty string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user