Skip to content

Commit

Permalink
BUILD: Fix an osx brew qt5 dependency path problem in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed May 28, 2018
1 parent 9a8f83b commit 8d5b519
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ include(CheckIncludeFileCXX)
include(CMakeAM)
include(SetCheckCompilerFlag)

# -------------------------------------------------------------------------
# qt5 osx brew fix
if(APPLE AND EXISTS /usr/local/opt/qt5)
# Homebrew installs Qt5 (up to at least 5.9.1) in
# /usr/local/qt5, ensure it can be found by CMake since
# it is not in the default /usr/local prefix.
list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
endif()

# -------------------------------------------------------------------------
# platform specific flags
Expand Down

0 comments on commit 8d5b519

Please sign in to comment.