mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
cmSystemTools: More functions accept std::string params
This commit is contained in:
@@ -173,7 +173,7 @@ void cmTryRunCommand::RunExecutable(const std::string& runArgs,
|
||||
std::vector<std::string> emulatorWithArgs;
|
||||
cmSystemTools::ExpandListArgument(emulator, emulatorWithArgs);
|
||||
finalCommand +=
|
||||
cmSystemTools::ConvertToRunCommandPath(emulatorWithArgs[0].c_str());
|
||||
cmSystemTools::ConvertToRunCommandPath(emulatorWithArgs[0]);
|
||||
finalCommand += " ";
|
||||
for (std::string const& arg : cmMakeRange(emulatorWithArgs).advance(1)) {
|
||||
finalCommand += "\"";
|
||||
@@ -182,8 +182,7 @@ void cmTryRunCommand::RunExecutable(const std::string& runArgs,
|
||||
finalCommand += " ";
|
||||
}
|
||||
}
|
||||
finalCommand +=
|
||||
cmSystemTools::ConvertToRunCommandPath(this->OutputFile.c_str());
|
||||
finalCommand += cmSystemTools::ConvertToRunCommandPath(this->OutputFile);
|
||||
if (!runArgs.empty()) {
|
||||
finalCommand += runArgs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user