|
@@ -90,7 +90,7 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
|
|
|
|
|
|
// Prepend with the emulator when cross compiling if required.
|
|
|
const char* emulator = target->GetProperty("CROSSCOMPILING_EMULATOR");
|
|
|
- if (emulator != nullptr) {
|
|
|
+ if (emulator != nullptr && *emulator) {
|
|
|
std::vector<std::string> emulatorWithArgs;
|
|
|
cmSystemTools::ExpandListArgument(emulator, emulatorWithArgs);
|
|
|
std::string emulatorExe(emulatorWithArgs[0]);
|