diff --git a/Source/cmFastbuildNormalTargetGenerator.cxx b/Source/cmFastbuildNormalTargetGenerator.cxx index efeabaeb60..fab5d931a2 100644 --- a/Source/cmFastbuildNormalTargetGenerator.cxx +++ b/Source/cmFastbuildNormalTargetGenerator.cxx @@ -523,6 +523,12 @@ void cmFastbuildNormalTargetGenerator::EnsureDirectoryExists( } } +void cmFastbuildNormalTargetGenerator::EnsureParentDirectoryExists( + std::string const& path) const +{ + this->EnsureDirectoryExists(cmSystemTools::GetParentDirectory(path)); +} + std::vector cmFastbuildNormalTargetGenerator::GetManifestsAsFastbuildPath() const { diff --git a/Source/cmFastbuildNormalTargetGenerator.h b/Source/cmFastbuildNormalTargetGenerator.h index 5512b19a41..8a01f776cd 100644 --- a/Source/cmFastbuildNormalTargetGenerator.h +++ b/Source/cmFastbuildNormalTargetGenerator.h @@ -157,4 +157,5 @@ private: std::vector GetManifestsAsFastbuildPath() const; void EnsureDirectoryExists(std::string const& path) const; + void EnsureParentDirectoryExists(std::string const& path) const; };