From 0c9f1be2c8e22d24cb9f22e9e4fd2c791d770db1 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sun, 27 Mar 2016 12:06:47 +0200 Subject: [PATCH] Prevent users from compiling Tomahawk with Qt4 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50e44eed6b..7be9889a2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,6 +228,10 @@ endif() if( NOT Qt5Core_DIR ) message(STATUS "Could not find Qt5, searching for Qt4 instead...") + if(NOT FORCE_QT4) + message(FATAL_ERROR "Qt4 support is broken, if you plan to fix it, add -DFORCE_QT4=ON to your cmake arguments otherwise you should compile Tomahawk with Qt5") + endif() + set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork") if( BUILD_GUI ) list(APPEND NEEDED_QT4_COMPONENTS "QtGui" "QtWebkit" "QtUiTools" "QtSvg")