Makefiles: Deduplicate variable

This commit is contained in:
Stephen Kelly 2016-08-27 13:44:53 +02:00
parent fbd8394867
commit cd351ef2c4
1 changed files with 5 additions and 4 deletions

View File

@ -638,19 +638,20 @@ void cmLocalUnixMakefileGenerator3::WriteMakeVariables(
#endif #endif
} }
std::string cmakeShellCommand = this->ConvertShellCommand(
cmSystemTools::GetCMakeCommand(), cmOutputConverter::FULL);
/* clang-format off */ /* clang-format off */
makefileStream makefileStream
<< "# The CMake executable.\n" << "# The CMake executable.\n"
<< "CMAKE_COMMAND = " << "CMAKE_COMMAND = "
<< this->ConvertShellCommand(cmSystemTools::GetCMakeCommand(), << cmakeShellCommand
cmOutputConverter::FULL)
<< "\n" << "\n"
<< "\n"; << "\n";
makefileStream makefileStream
<< "# The command to remove a file.\n" << "# The command to remove a file.\n"
<< "RM = " << "RM = "
<< this->ConvertShellCommand(cmSystemTools::GetCMakeCommand(), << cmakeShellCommand
cmOutputConverter::FULL)
<< " -E remove -f\n" << " -E remove -f\n"
<< "\n"; << "\n";
makefileStream makefileStream