Use new brew package name syntax

This commit is contained in:
Léo Andrès
2017-04-18 22:54:26 +02:00
committed by zapashcanon
parent cea7d7d002
commit c08c5ac0fc
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ set -e
if [ "$QT5" ]; then
# Workaround; No FindQt5.cmake module exists
CMAKE_PREFIX_PATH="$(brew --prefix qt55)"
CMAKE_PREFIX_PATH="$(brew --prefix qt@5.5)"
export CMAKE_PREFIX_PATH
fi

View File

@@ -24,10 +24,10 @@ echo -e "$MSG_COLOR\n\nCreating App Bundle \"$APP\"...$COLOR_RESET"
# Locate macdeployqt, assume homebrew & Qt5
which macdeployqt > /dev/null 2>&1
if [ $? -ne 0 ]; then
brew --prefix qt55 > /dev/null 2>&1
brew --prefix qt@5.5 > /dev/null 2>&1
if [ $? -eq 0 ]; then
# Prefer Qt 5.5 (QTBUG-53533)
PATH=$PATH:$(brew --prefix qt55)/bin
PATH=$PATH:$(brew --prefix qt@5.5)/bin
else
# Fallback Qt 5.6+
PATH=$PATH:$(brew --prefix qt5)/bin