{"id":359,"date":"2016-05-19T12:30:57","date_gmt":"2016-05-19T17:30:57","guid":{"rendered":"http:\/\/www.flatline.net\/journal\/?p=359"},"modified":"2016-05-19T12:30:57","modified_gmt":"2016-05-19T17:30:57","slug":"qt5-patch-make-qmake-look-in-pwd-for-prf-file","status":"publish","type":"post","link":"http:\/\/www.flatline.net\/journal\/?p=359","title":{"rendered":"Qt5 patch: make qmake look in pwd for .prf file"},"content":{"rendered":"<p>Only tested on OS X<\/p>\n<p><code><br \/>\n git diff -p --no-ext-diff<br \/>\ndiff --git a\/qmake\/library\/qmakeevaluator.cpp b\/qmake\/library\/qmakeevaluator.cpp<br \/>\nindex e9da45c..dbe8f41 100644<br \/>\n--- a\/qmake\/library\/qmakeevaluator.cpp<br \/>\n+++ b\/qmake\/library\/qmakeevaluator.cpp<br \/>\n@@ -1475,7 +1475,11 @@ void QMakeEvaluator::updateFeaturePaths()<\/p>\n<p>     QStringList feature_roots;<\/p>\n<p>-    foreach (const QString &f, m_option->getPathListEnv(QLatin1String(\"QMAKEFEATURES\")))<br \/>\n+    \/\/ JET 20160519 this makes it look in the pwd for a .pro file<br \/>\n+    \/\/ \"works for me!\"<br \/>\n+    feature_roots += QDir::currentPath();<br \/>\n+<br \/>\n+    foreach (const QString &f, m_option->getPathListEnv(QLatin1String(\"QMAKEFEATURES\")))<br \/>\n         feature_roots += f;<\/p>\n<p>     feature_roots += m_qmakefeatures;<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Only tested on OS X git diff -p &#8211;no-ext-diff diff &#8211;git a\/qmake\/library\/qmakeevaluator.cpp b\/qmake\/library\/qmakeevaluator.cpp index e9da45c..dbe8f41 100644 &#8212; a\/qmake\/library\/qmakeevaluator.cpp +++ b\/qmake\/library\/qmakeevaluator.cpp @@ -1475,7 +1475,11 @@ void QMakeEvaluator::updateFeaturePaths() QStringList feature_roots; &#8211; foreach (const QString &#038;f, m_option->getPathListEnv(QLatin1String(&#8220;QMAKEFEATURES&#8221;))) + \/\/ JET 20160519 this makes it look in the pwd for a .pro file + \/\/ &#8220;works for me!&#8221; + [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,27],"tags":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-hacking","category-os-x-and-linux"],"_links":{"self":[{"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359"}],"version-history":[{"count":1,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":360,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions\/360"}],"wp:attachment":[{"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.flatline.net\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}