travis: fix CMake + OSX build

Brew changed installation dir for Qt, and we have to change it in our
workaround symlinks too.
This commit is contained in:
Eugene Shalygin 2017-04-11 13:24:38 +02:00
parent c32cee8098
commit 97d52668cc

View file

@ -150,9 +150,8 @@ install:
if [ "$build_system" = "cmake" ]; then
brew install qt5 ;
brew link --force qt5 ;
export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev)
ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs
ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins
ln -s /usr/local/opt/qt/mkspecs /usr/local/mkspecs
ln -s /usr/local/opt/qt/plugins /usr/local/plugins
else
# Qt
# Copy custom qt5 bottle to homebrew's cache so it can find and install it