diff --git a/TomahawkUse.cmake b/TomahawkUse.cmake index 503ba8d7d..0d59a9f9d 100644 --- a/TomahawkUse.cmake +++ b/TomahawkUse.cmake @@ -4,7 +4,7 @@ find_package(Qt4 COMPONENTS QtNetwork QtCore QtGui QtSql REQUIRED) include( ${QT_USE_FILE} ) set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork") -if(BUILD_GUI) +if(BUILD_GUI OR NOT DEFINED BUILD_GUI) list(APPEND NEEDED_QT4_COMPONENTS "QtGui" "QtWebkit" "QtUiTools" "QtSvg") endif()