From dff020e679bf8f8de4b401d38de6a5e9f43ea847 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 5 Dec 2025 15:07:31 -0500 Subject: [PATCH] FASTBuild: Add internal helper for intermediate directory creation --- Source/cmFastbuildNormalTargetGenerator.cxx | 6 ++++++ Source/cmFastbuildNormalTargetGenerator.h | 1 + 2 files changed, 7 insertions(+) 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; };