qmake/generators/win32/winmakefile.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/qmake/generators/win32/winmakefile.cpp	Fri Apr 16 15:50:13 2010 +0300
+++ b/qmake/generators/win32/winmakefile.cpp	Mon May 03 13:17:34 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;
                     }
                 }