summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-08-27 11:44:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-08-27 11:44:53 (GMT)
commitcd351ef2c427284eea0ab494eba5d4f24bc0e050 (patch)
treed2eae0bca044ab95e4b65ea39371f78853a51ae9 /Source/cmLocalUnixMakefileGenerator3.cxx
parentfbd83948675f4b1cb487d59390cfe1689f801fc0 (diff)
downloadCMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.zip
CMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.tar.gz
CMake-cd351ef2c427284eea0ab494eba5d4f24bc0e050.tar.bz2
Makefiles: Deduplicate variable
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx9
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