qmake/generators/win32/winmakefile.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 5 d3bac044e0f0
--- a/qmake/generators/win32/winmakefile.cpp	Mon Mar 15 12:43:09 2010 +0200
+++ b/qmake/generators/win32/winmakefile.cpp	Thu Apr 08 14:19:33 2010 +0300
@@ -150,6 +150,10 @@
                     if(QMakeMetaInfo::libExists((*it).local() + Option::dir_sep + lib) ||
                        exists((*it).local() + Option::dir_sep + lib + extension)) {
                         out = (*it).real() + Option::dir_sep + lib + extension;
+                        if (out.contains(QLatin1Char(' '))) {
+                            out.prepend(QLatin1Char('\"'));
+                            out.append(QLatin1Char('\"'));
+                        }
                         break;
                     }
                 }