export CC=gcc
export CXX=g++
+# We use Qt 5.5 in order to remain compatible with more versions of Mac OS X.
+QTVER=qt@5.5
+
# Path to Qt5 binaries (needed for cmake to find the Qt5 libs).
-export PATH=`brew list qt5 | grep bin | head -n 1 | xargs dirname`":$PATH"
+export PATH=`brew list $QTVER | grep bin | head -n 1 | xargs dirname`":$PATH"
# Path to Python 2/3 pkg-config files.
# In Homebrew, pkg-config files of "keg-only" formulas (Python is one of them)
# -----------------------------------------------------------------------------
-P="$PREFIX/lib/pkgconfig:$PY2:$PY3"
+P="$PREFIX/lib/pkgconfig:/usr/local/opt/$QTVER/lib/pkgconfig:$PY2:$PY3"
C="$C --prefix=$PREFIX"
# Remove build directory contents (if any) and create a new build dir.