mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
cmTransformDepfile: Fix processing filenames with $ and # in them
This commit is contained in:
@@ -26,6 +26,12 @@ void WriteFilenameGcc(cmsys::ofstream& fout, std::string const& filename)
|
||||
{
|
||||
for (auto c : filename) {
|
||||
switch (c) {
|
||||
case '$':
|
||||
fout << "$$";
|
||||
break;
|
||||
case '#':
|
||||
fout << "\\#";
|
||||
break;
|
||||
case ' ':
|
||||
fout << "\\ ";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user