diff options
author | Brad King <brad.king@kitware.com> | 2021-06-08 20:25:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-09 14:09:58 (GMT) |
commit | a6de8ec51b5afdef747e0dfd8f5d67e2b92429c0 (patch) | |
tree | aa3b0be1b0bf328df7c67428aa6ac7a3c93b38a9 /Source/cmTransformDepfile.cxx | |
parent | c63ad0c2d1ee657a65585d0d0ea61279ca0db4d7 (diff) | |
download | CMake-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.cxx | 1 |
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; |