summaryrefslogtreecommitdiffstats
path: root/scripts/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/common.sh')
-rw-r--r--scripts/common.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/common.sh b/scripts/common.sh
index 3b6abb9..c599fd1 100644
--- a/scripts/common.sh
+++ b/scripts/common.sh
@@ -60,6 +60,7 @@ function qt_select()
# Remove old
qt_env_removefrom LD_LIBRARY_PATH $QTLIBDIR
qt_env_removefrom PKG_CONFIG_PATH $QTLIBDIR/pkgconfig
+ qt_env_removefrom CMAKE_PREFIX_PATH $QTDIR
# Add new
if [ x$1 != xnone ]; then
@@ -74,6 +75,9 @@ function qt_select()
QTDIR=$(qmake -query QT_INSTALL_PREFIX)
export QTDIR
+ qt_env_addto CMAKE_PREFIX_PATH $QTDIR
+ export CMAKE_PREFIX_PATH
+
# is this an uninstalled Qt build dir?
if [ -f $QTDIR/.qmake.cache ]; then
QTSRCDIR=$(sed -n '/QT_SOURCE_TREE *= */{s///;s/\$\$quote(\(.*\))$/\1/;p;}' $QTDIR/.qmake.cache)