mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
cmOutputConverter: remove unused 'local' argument
This commit is contained in:
@@ -2068,19 +2068,18 @@ void cmLocalUnixMakefileGenerator3::CreateCDCommand(
|
||||
// back because the shell keeps the working directory between
|
||||
// commands.
|
||||
std::string cmd = cd_cmd;
|
||||
cmd += this->ConvertToOutputForExisting(tgtDir, relRetDir);
|
||||
cmd += this->ConvertToOutputForExisting(tgtDir);
|
||||
commands.insert(commands.begin(), cmd);
|
||||
|
||||
// Change back to the starting directory.
|
||||
cmd = cd_cmd;
|
||||
cmd += this->ConvertToOutputForExisting(relRetDir, tgtDir);
|
||||
cmd += this->ConvertToOutputForExisting(relRetDir);
|
||||
commands.push_back(cmd);
|
||||
} else {
|
||||
// On UNIX we must construct a single shell command to change
|
||||
// directory and build because make resets the directory between
|
||||
// each command.
|
||||
std::string outputForExisting =
|
||||
this->ConvertToOutputForExisting(tgtDir, relRetDir);
|
||||
std::string outputForExisting = this->ConvertToOutputForExisting(tgtDir);
|
||||
std::string prefix = cd_cmd + outputForExisting + " && ";
|
||||
std::transform(commands.begin(), commands.end(), commands.begin(),
|
||||
std::bind1st(std::plus<std::string>(), prefix));
|
||||
|
||||
Reference in New Issue
Block a user