do not look for frameworks in library path
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Thu, 19 Jul 2012 15:52:29 +0000 (17:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jul 2012 22:09:45 +0000 (00:09 +0200)
it's just wrong

Change-Id: Ia21e9fb7e67623d6c4f70eab1f76360624ba314b
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
qmake/generators/unix/unixmake.cpp

index 13ee57f..dc991ab 100644 (file)
@@ -626,9 +626,8 @@ UnixMakefileGenerator::processPrlFiles()
                     else
                         opt = l.at(++lit);
                     opt = opt.trimmed();
-                    const QList<QMakeLocalFileName> dirs = frameworkdirs + libdirs;
-                    for(int dep_i = 0; dep_i < dirs.size(); ++dep_i) {
-                        QString prl = dirs[dep_i].local() + "/" + opt + ".framework/" + opt + Option::prl_ext;
+                    foreach (const QMakeLocalFileName &dir, frameworkdirs) {
+                        QString prl = dir.local() + "/" + opt + ".framework/" + opt + Option::prl_ext;
                         if(processPrlFile(prl))
                             break;
                     }