summaryrefslogtreecommitdiffstats
path: root/Source/cmTransformDepfile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-08 20:25:50 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-09 14:09:58 (GMT)
commita6de8ec51b5afdef747e0dfd8f5d67e2b92429c0 (patch)
treeaa3b0be1b0bf328df7c67428aa6ac7a3c93b38a9 /Source/cmTransformDepfile.cxx
parentc63ad0c2d1ee657a65585d0d0ea61279ca0db4d7 (diff)
downloadCMake-a6de8ec51b5afdef747e0dfd8f5d67e2b92429c0.zip
CMake-a6de8ec51b5afdef747e0dfd8f5d67e2b92429c0.tar.gz
CMake-a6de8ec51b5afdef747e0dfd8f5d67e2b92429c0.tar.bz2
cmTransformDepfile: Make directory for transformed depfile automatically
Diffstat (limited to 'Source/cmTransformDepfile.cxx')
-rw-r--r--Source/cmTransformDepfile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTransformDepfile.cxx b/Source/cmTransformDepfile.cxx
index 0df9550..039b19d 100644
--- a/Source/cmTransformDepfile.cxx
+++ b/Source/cmTransformDepfile.cxx
@@ -93,6 +93,7 @@ bool cmTransformDepfile(cmDepfileFormat format, const cmLocalGenerator& lg,
content = *std::move(result);
}
+ cmSystemTools::MakeDirectory(cmSystemTools::GetFilenamePath(outfile));
cmsys::ofstream fout(outfile.c_str());
if (!fout) {
return false;