obligatory obscure reference


self-deprecating yet still self-promotional witty comment

2016/05/19

Qt5 patch: make qmake look in pwd for .prf file

Filed under: Hacking,OS X and Linux — jet @ 12:30

Only tested on OS X


git diff -p --no-ext-diff
diff --git a/qmake/library/qmakeevaluator.cpp b/qmake/library/qmakeevaluator.cpp
index e9da45c..dbe8f41 100644
--- a/qmake/library/qmakeevaluator.cpp
+++ b/qmake/library/qmakeevaluator.cpp
@@ -1475,7 +1475,11 @@ void QMakeEvaluator::updateFeaturePaths()

QStringList feature_roots;

- foreach (const QString &f, m_option->getPathListEnv(QLatin1String("QMAKEFEATURES")))
+ // JET 20160519 this makes it look in the pwd for a .pro file
+ // "works for me!"
+ feature_roots += QDir::currentPath();
+
+ foreach (const QString &f, m_option->getPathListEnv(QLatin1String("QMAKEFEATURES")))
feature_roots += f;

feature_roots += m_qmakefeatures;

Powered by WordPress