Browse Source

FASTBuild: Add internal helper for intermediate directory creation

Brad King 1 month ago
parent
commit
dff020e679

+ 6 - 0
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<std::string>
 std::vector<std::string>
 cmFastbuildNormalTargetGenerator::GetManifestsAsFastbuildPath() const
 cmFastbuildNormalTargetGenerator::GetManifestsAsFastbuildPath() const
 {
 {

+ 1 - 0
Source/cmFastbuildNormalTargetGenerator.h

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