1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Building with BUILD_WITH_QT4 forces building with Qt4.

This commit is contained in:
Christian Muehlhaeuser
2013-03-02 07:22:31 +01:00
parent 7d0589ea0e
commit b18fac950b

View File

@@ -108,6 +108,7 @@ else()
endif()
if(NOT BUILD_WITH_QT4)
find_package(Qt5Core QUIET)
if(Qt5Core_DIR)
find_package(Qt5Widgets QUIET)
@@ -133,7 +134,9 @@ if(Qt5Core_DIR)
#FIXME: CrashReporter depends on deprecated QHttp
set(WITH_CRASHREPORTER OFF)
set(WITH_BREAKPAD OFF)
else()
endif()
endif()
if(NOT Qt5Core_DIR)
message(STATUS "Could not find Qt5, searching for Qt4 instead...")
set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork")