FASTBuild: Add internal helper for intermediate directory creation

This commit is contained in:
Brad King
2025-12-05 15:07:31 -05:00
parent 7e65afff2f
commit dff020e679
2 changed files with 7 additions and 0 deletions

View File

@@ -523,6 +523,12 @@ void cmFastbuildNormalTargetGenerator::EnsureDirectoryExists(
}
}
void cmFastbuildNormalTargetGenerator::EnsureParentDirectoryExists(
std::string const& path) const
{
this->EnsureDirectoryExists(cmSystemTools::GetParentDirectory(path));
}
std::vector<std::string>
cmFastbuildNormalTargetGenerator::GetManifestsAsFastbuildPath() const
{

View File

@@ -157,4 +157,5 @@ private:
std::vector<std::string> GetManifestsAsFastbuildPath() const;
void EnsureDirectoryExists(std::string const& path) const;
void EnsureParentDirectoryExists(std::string const& path) const;
};