Przeglądaj źródła

FASTBuild: Add internal helper for intermediate directory creation

Brad King 2 tygodni temu
rodzic
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>
 cmFastbuildNormalTargetGenerator::GetManifestsAsFastbuildPath() const
 {

+ 1 - 0
Source/cmFastbuildNormalTargetGenerator.h

@@ -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;
 };