mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-22 03:13:15 -04:00
Attempt to use Qt not necessarily from brew
The homebrew package should add qmake to the path, and qmake knows where Qt is. If this works for brew, it should work for not-brew, too. This *might* give a trailing /lib on the path CMake sees, but CMake implicitly tries adding a /lib suffix to paths in CMAKE_PREFIX_PATH, so this shouldn't make a difference to anything.
This commit is contained in:
parent
f155b0199e
commit
9fe8f3b03c
@ -10,11 +10,11 @@ cd build
|
||||
DEPENDENCIES_ROOT="/tmp/openmw-deps"
|
||||
|
||||
if [[ "${MACOS_AMD64}" ]]; then
|
||||
QT_PATH=$(arch -x86_64 /usr/local/bin/brew --prefix qt@6)
|
||||
QT_PATH=$(arch -x86_64 /bin/bash -c "qmake -v | sed -rn -e 's/Using Qt version [.0-9]+ in //p'")
|
||||
ICU_PATH=$(arch -x86_64 /usr/local/bin/brew --prefix icu4c)
|
||||
OPENAL_PATH=$(arch -x86_64 /usr/local/bin/brew --prefix openal-soft)
|
||||
else
|
||||
QT_PATH=$(brew --prefix qt@6)
|
||||
QT_PATH=$(qmake -v | sed -rn -e "s/Using Qt version [.0-9]+ in //p")
|
||||
ICU_PATH=$(brew --prefix icu4c)
|
||||
OPENAL_PATH=$(brew --prefix openal-soft)
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user