| 17 | } |
| 18 | |
| 19 | bool 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 | |
| 31 | void cmWorkingDirectory::Pop() |
| 32 | { |