summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-08 19:49:08 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-08 19:51:36 (GMT)
commit287c59107997f33ba97e1637206a468ac0470033 (patch)
treea26b825e07d3ca1368e00132be1b15ad259b0ced
parente94f00dfe3c5a4f357a34a37d397c1fbbf1f52d5 (diff)
downloadCMake-287c59107997f33ba97e1637206a468ac0470033.zip
CMake-287c59107997f33ba97e1637206a468ac0470033.tar.gz
CMake-287c59107997f33ba97e1637206a468ac0470033.tar.bz2
cmake -E: Fix cmake_transform_depfile escaping of transformed paths
In commit b2c14bc774 (cmake -E: Add cmake_transform_depfile internal command, 2020-10-02) we forgot to use `WriteFilenameGcc` in one place.
-rw-r--r--Source/cmTransformDepfile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTransformDepfile.cxx b/Source/cmTransformDepfile.cxx
index e1f8753..163d7e0 100644
--- a/Source/cmTransformDepfile.cxx
+++ b/Source/cmTransformDepfile.cxx
@@ -47,7 +47,8 @@ void WriteGccDepfile(cmsys::ofstream& fout, const cmGccDepfileContent& content)
}
fout << ':';
for (auto const& path : dep.paths) {
- fout << " \\\n " << path;
+ fout << " \\\n ";
+ WriteFilenameGcc(fout, path);
}
fout << '\n';
}