Skip to content

Commit

Permalink
Prevent users from compiling Tomahawk with Qt4
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Mar 27, 2016
1 parent f7a3d44 commit 0c9f1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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")
Expand Down

0 comments on commit 0c9f1be

Please sign in to comment.