Merge pull request #6594 from lioncash/qt

DolphinQt2/CMakeLists: Specify Qt libraries via COMPONENTS in the find_package call
This commit is contained in:
Léo Lam 2018-04-05 10:03:41 +02:00 committed by GitHub
commit 39cb22ddc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1,10 +1,4 @@
find_package(Qt5Widgets) find_package(Qt5 REQUIRED COMPONENTS Gui Widgets)
find_package(Qt5Gui)
if(NOT Qt5Widgets_FOUND OR NOT Qt5Gui_FOUND)
message(FATAL_ERROR "Could not find Qt5, which is required to build the DolphinQt2 frontend. If you don't want to build the Qt frontend, pass -DENABLE_QT2=False to
CMake.")
endif()
set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "") set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
message(STATUS "Found Qt version ${Qt5Core_VERSION}") message(STATUS "Found Qt version ${Qt5Core_VERSION}")