Makefiles: Deduplicate variable
This commit is contained in:
parent
fbd8394867
commit
cd351ef2c4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue