From 08d1d418f833abf2a38a3fcd7e336bc2e20f6a7f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 21 Oct 2013 16:43:26 -0700 Subject: [PATCH] touchups to README for QT_CMAKE_PREFIX_PATH --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e0d85e3f6b..6b02856cb5 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ and generate Xcode project files. If you are building on a *nix system, you'll run something like "cmake ..", which uses the default Cmake generator for Unix Makefiles. +If Cmake throws you an error related to Qt5 it likely cannot find your Qt5 cmake modules. +You can solve this by setting an environment variable, QT_CMAKE_PREFIX_PATH, to the location of the folder distributed +with Qt5 that contains them. + +For example, a Qt5 5.1.1 installation to /usr/local/qt5 would require that QT_CMAKE_PREFIX_PATH be set with the following command (or in your profile) + + export QT_CMAKE_PREFIX_PATH=/usr/local/qt/5.1.1/clang_64/lib/cmake/ + +The path it needs to be set to will depend on where and how Qt5 was installed. + Building in XCode -----