From ac37b12450757bfca5bb3a92a7ea148dbde8b701 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Sun, 9 Feb 2014 22:49:48 +0530 Subject: [PATCH] cmake: Fix Qt5 lib search path on OSX Signed-off-by: Rohit Yadav --- CMakeLists.txt | 3 +++ INSTALL.macosx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 297f8d750..c46bb41f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,9 @@ FIND_PACKAGE(frei0r REQUIRED) INCLUDE_DIRECTORIES(${FREI0R_INCLUDE_DIR}) +# Manually set Qt5 path for OSX installed using brew +SET(CMAKE_PREFIX_PATH "/usr/local/opt/qt5") + # search for Qt4 if (NOT FORCE_QT4) find_package(Qt5Core QUIET) diff --git a/INSTALL.macosx b/INSTALL.macosx index f04d3f50e..f02dc7cc5 100644 --- a/INSTALL.macosx +++ b/INSTALL.macosx @@ -3,7 +3,7 @@ Building VLMC on Mac OSX Dependencies: - Build tools: g++, make, cmake etc. -- Qt framework >= 4.6.0 +- Qt framework >= 5.0 (brew install qt5) Get the sources: git clone git://git.videolan.org/vlmc.git -- GitLab