Skip to content

Commit 6d1901f

Browse files
committed
fix(install): set CMAKE_PREFIX_PATH after fresh Qt install on macOS
1 parent b606f99 commit 6d1901f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ fi
160160

161161
if ! $QT6_FOUND; then
162162
install_qt6
163+
# Set CMAKE_PREFIX_PATH for freshly installed Qt on macOS
164+
if [ "$OS" = "macos" ] && command -v brew &>/dev/null; then
165+
QT_PREFIX="$(brew --prefix qt)"
166+
export CMAKE_PREFIX_PATH="$QT_PREFIX:${CMAKE_PREFIX_PATH:-}"
167+
export PATH="$QT_PREFIX/bin:$PATH"
168+
fi
163169
else
164170
ok "Qt 6 already installed"
165171
fi

0 commit comments

Comments
 (0)