[vlmc-devel] cmake: Fix Qt5 lib search path on OSX

Rohit Yadav git at videolan.org
Sun Feb 9 18:20:43 CET 2014


vlmc | branch: master | Rohit Yadav <bhaisaab at baagi.org> | Sun Feb  9 23:07:48 2014 +0530| [ac37b12450757bfca5bb3a92a7ea148dbde8b701] | committer: Rohit Yadav

cmake: Fix Qt5 lib search path on OSX

Signed-off-by: Rohit Yadav <bhaisaab at baagi.org>

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ac37b12450757bfca5bb3a92a7ea148dbde8b701
---

 CMakeLists.txt |    3 +++
 INSTALL.macosx |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 297f8d7..c46bb41 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 f04d3f5..f02dc7c 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



More information about the Vlmc-devel mailing list