mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
cmGeneratorTarget::GetProperty: return cmProp
This commit is contained in:
@@ -100,9 +100,9 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
|
||||
exe = target->GetFullPath(config);
|
||||
|
||||
// Prepend with the emulator when cross compiling if required.
|
||||
const char* emulator = target->GetProperty("CROSSCOMPILING_EMULATOR");
|
||||
if (emulator != nullptr && *emulator) {
|
||||
std::vector<std::string> emulatorWithArgs = cmExpandedList(emulator);
|
||||
cmProp emulator = target->GetProperty("CROSSCOMPILING_EMULATOR");
|
||||
if (emulator != nullptr && !emulator->empty()) {
|
||||
std::vector<std::string> emulatorWithArgs = cmExpandedList(*emulator);
|
||||
std::string emulatorExe(emulatorWithArgs[0]);
|
||||
cmSystemTools::ConvertToUnixSlashes(emulatorExe);
|
||||
os << cmOutputConverter::EscapeForCMake(emulatorExe) << " ";
|
||||
|
||||
Reference in New Issue
Block a user