From 60013b8987abc643a31fecf185d463973e009915 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 23 Mar 2014 02:33:48 +0100 Subject: [PATCH] Fix finding a custom Qt4 via -DQT_PATH This CMake option has recently been renamed from QT to QT_PATH; we really should actually use the new name... --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32fc75f2..76889d81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,8 +143,8 @@ if (USE_QT5) else() # Select a Qt installation here, if you don't want to use system Qt if(QT_PATH) - # FindQt4 will look for the qmake binary in $PATH, so we just prepend the Qt dir - set(ENV{PATH} ${QT}/bin:$ENV{PATH}) + # FindQt4 will look for the qmake binary in $PATH, so we just prepend QT_PATH + set(ENV{PATH} ${QT_PATH}/bin:$ENV{PATH}) endif() # Now that we have the correct $PATH, lets find Qt! -- 2.20.1