chore: Improve finding Homebrew's Qt5 on macOS (#4291)
This commit is contained in:
+3
-5
@@ -1,8 +1,6 @@
|
|||||||
if(APPLE AND EXISTS /usr/local/opt/qt5)
|
if(APPLE AND DEFINED ENV{HOMEBREW_PREFIX} AND EXISTS $ENV{HOMEBREW_PREFIX}/opt/qt@5)
|
||||||
# Homebrew installs Qt5 (up to at least 5.9.1) in
|
# If Homebrew is used, HOMEBREW_PREFIX should be defined
|
||||||
# /usr/local/qt5, ensure it can be found by CMake since
|
list(APPEND CMAKE_PREFIX_PATH "$ENV{HOMEBREW_PREFIX}/opt/qt@5")
|
||||||
# it is not in the default /usr/local prefix.
|
|
||||||
list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|||||||
Reference in New Issue
Block a user