diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:44:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:44:53 (GMT) |
commit | cd351ef2c427284eea0ab494eba5d4f24bc0e050 (patch) | |
tree | d2eae0bca044ab95e4b65ea39371f78853a51ae9 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | fbd83948675f4b1cb487d59390cfe1689f801fc0 (diff) | |
download | CMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.zip CMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.tar.gz CMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.tar.bz2 |
Makefiles: Deduplicate variable
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 824d4b8..f2ef5c8 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -638,19 +638,20 @@ void cmLocalUnixMakefileGenerator3::WriteMakeVariables( #endif } + std::string cmakeShellCommand = this->ConvertShellCommand( + cmSystemTools::GetCMakeCommand(), cmOutputConverter::FULL); + /* clang-format off */ makefileStream << "# The CMake executable.\n" << "CMAKE_COMMAND = " - << this->ConvertShellCommand(cmSystemTools::GetCMakeCommand(), - cmOutputConverter::FULL) + << cmakeShellCommand << "\n" << "\n"; makefileStream << "# The command to remove a file.\n" << "RM = " - << this->ConvertShellCommand(cmSystemTools::GetCMakeCommand(), - cmOutputConverter::FULL) + << cmakeShellCommand << " -E remove -f\n" << "\n"; makefileStream |