Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit fb37ff9

Browse files
committed
Fix build using brew qt5
1 parent fc1e05c commit fb37ff9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ add_custom_target(tcversion echo "\\#\\#teamcity[setParameter name=\\'env.LAUNCH
108108

109109
################################ 3rd Party Libs ################################
110110

111+
if(APPLE AND EXISTS /opt/homebrew/opt/qt@5)
112+
list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/qt@5")
113+
endif()
114+
111115
# Find the required Qt parts
112116
find_package(Qt5Core REQUIRED)
113117
find_package(Qt5Widgets REQUIRED)

build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ JAVA_HOME=$(/usr/libexec/java_home -v 1.8 -a arm64) \
1010
-DCMAKE_CXX_COMPILER="/usr/bin/clang++ " \
1111
-DCMAKE_BUILD_TYPE=Release \
1212
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/dist/" \
13-
-DCMAKE_PREFIX_PATH="/opt/homebrew/opt/qt@5/" \
14-
-DQt5_DIR="/opt/homebrew/opt/qt@5/" \
1513
-DLauncher_LAYOUT=mac-bundle \
1614
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 \
1715
-DLauncher_META_URL="https://minecraftmachina.github.io/meta-multimc-arm64/" \

0 commit comments

Comments
 (0)