diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp index 07f8d861dc6..53cd620dcb8 100644 --- a/qmake/generators/unix/unixmake.cpp +++ b/qmake/generators/unix/unixmake.cpp @@ -767,7 +767,9 @@ UnixMakefileGenerator::escapeFilePath(const QString &path) const QString ret = path; if(!ret.isEmpty()) { ret.replace(QLatin1Char(' '), QLatin1String("\\ ")) - .replace(QLatin1Char('\t'), QLatin1String("\\\t")); + .replace(QLatin1Char('\t'), QLatin1String("\\\t")) + .replace(QLatin1Char('\''), QLatin1String("\\'")) + .replace(QLatin1Char('"'), QLatin1String("\\\"")); debug_msg(2, "EscapeFilePath: %s -> %s", path.toLatin1().constData(), ret.toLatin1().constData()); } return ret;