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

Method SetDirectory

Source/cmWorkingDirectory.cxx:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool cmWorkingDirectory::SetDirectory(std::string const& newdir)
20{
21 cmsys::Status status = cmSystemTools::SetLogicalWorkingDirectory(newdir);
22 if (status) {
23 this->Error.clear();
24 return true;
25 }
26 this->Error = cmStrCat("Failed to change working directory to \"", newdir,
27 "\": ", status.GetString());
28 return false;
29}
30
31void cmWorkingDirectory::Pop()
32{

Callers 4

cmWorkingDirectoryMethod · 0.95
PopMethod · 0.95
CreateTarMethod · 0.80
RunMethod · 0.80

Calls 3

cmStrCatFunction · 0.70
clearMethod · 0.45
GetStringMethod · 0.45

Tested by 1

RunMethod · 0.64