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

Method LoadConfig

Source/CTest/cmCTestLaunch.cxx:407–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void cmCTestLaunch::LoadConfig()
408{
409 cmake cm(cmState::Role::CTest);
410 cm.GetCurrentSnapshot().SetDefaultDefinitions();
411 cmGlobalGenerator gg(&cm);
412 cmMakefile mf(&gg, cm.GetCurrentSnapshot());
413 std::string fname =
414 cmStrCat(this->Reporter.LogDir, "CTestLaunchConfig.cmake");
415 if (cmSystemTools::FileExists(fname) && mf.ReadListFile(fname)) {
416 this->Reporter.SourceDir = mf.GetSafeDefinition("CTEST_SOURCE_DIRECTORY");
417 cmSystemTools::ConvertToUnixSlashes(this->Reporter.SourceDir);
418 }
419}

Callers 1

RunMethod · 0.95

Calls 5

SetDefaultDefinitionsMethod · 0.80
GetCurrentSnapshotMethod · 0.80
cmStrCatFunction · 0.50
FileExistsFunction · 0.50
ReadListFileMethod · 0.45

Tested by

no test coverage detected