MCPcopy Create free account
hub / github.com/Kitware/CMake / GetMakeCommand

Method GetMakeCommand

Source/CTest/cmCTestBuildHandler.cxx:227–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227std::string cmCTestBuildHandler::GetMakeCommand()
228{
229 std::string makeCommand = this->CTest->GetCTestConfiguration("MakeCommand");
230 cmCTestOptionalLog(this->CTest, HANDLER_VERBOSE_OUTPUT,
231 "MakeCommand:" << makeCommand << "\n", this->Quiet);
232
233 std::string configType = this->CTest->GetConfigType();
234 if (configType.empty()) {
235 configType =
236 this->CTest->GetCTestConfiguration("DefaultCTestConfigurationType");
237 }
238 if (configType.empty()) {
239 configType = "Release";
240 }
241
242 cmSystemTools::ReplaceString(makeCommand, "${CTEST_CONFIGURATION_TYPE}",
243 configType.c_str());
244
245 return makeCommand;
246}
247
248// clearly it would be nice if this were broken up into a few smaller
249// functions and commented...

Callers 2

ProcessHandlerMethod · 0.95
GenerateXMLHeaderMethod · 0.95

Calls 3

GetCTestConfigurationMethod · 0.80
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected