diff options
author | Brad King <brad.king@kitware.com> | 2020-12-08 19:49:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-08 19:51:36 (GMT) |
commit | 287c59107997f33ba97e1637206a468ac0470033 (patch) | |
tree | a26b825e07d3ca1368e00132be1b15ad259b0ced | |
parent | e94f00dfe3c5a4f357a34a37d397c1fbbf1f52d5 (diff) | |
download | CMake-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.cxx | 3 |
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'; } |