| 515 | } |
| 516 | |
| 517 | void cmFastbuildNormalTargetGenerator::EnsureDirectoryExists( |
| 518 | std::string const& path) const |
| 519 | { |
| 520 | if (cmSystemTools::FileIsFullPath(path.c_str())) { |
| 521 | cmSystemTools::MakeDirectory(path.c_str()); |
| 522 | } else { |
| 523 | auto* gg = this->GetGlobalGenerator(); |
| 524 | std::string fullPath = gg->GetCMakeInstance()->GetHomeOutputDirectory(); |
| 525 | // Also ensures there is a trailing slash. |
| 526 | fullPath += path; |
| 527 | cmSystemTools::MakeDirectory(fullPath); |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | void cmFastbuildNormalTargetGenerator::EnsureParentDirectoryExists( |
| 532 | std::string const& path) const |
no test coverage detected