mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-07 08:10:48 +00: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