diff options
| author | linear <dev@linear.network> | 2021-09-05 01:06:37 -0700 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-09-05 11:03:57 +0200 |
| commit | 0a8ecd6223e25e8125477093ecc2c87fdd369767 (patch) | |
| tree | d58b9ed224a4441de4377b241731747fa78b3f63 /Makefile | |
| parent | e494b4b8a4a9d71ae4c7fa21100129f2518c0569 (diff) | |
| download | kristall-0a8ecd6223e25e8125477093ecc2c87fdd369767.tar.gz | |
Fix building on macOS/arm64
Homebrew installs to a different directory on macOS/arm64.
this adds checks in the Makefile and in kristall.pro, and sets
the correct paths to Homebrew depending on whether the build is
targeting arm64 or not.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -25,9 +25,14 @@ QMAKE_COMMAND := qmake # QMAKE_COMMAND := /usr/bin/qmake-qt5 UNAME := $(shell uname) +UNAME_M := $(shell uname -m) # Homebrew on macOS does not link Qt5 into the system path. ifeq ($(UNAME),Darwin) - HOMEBREW_PATH=export PATH="$(PATH):/usr/local/opt/qt/bin"; + ifeq ($(UNAME_M),arm64) + HOMEBREW_PATH=export PATH="$(PATH):/opt/homebrew/opt/qt/bin"; + else + HOMEBREW_PATH=export PATH="$(PATH):/usr/local/opt/qt/bin"; + endif endif kristall: build/kristall |
