summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-04-04 12:12:07 -0400
committerLioncash <mathew1800@gmail.com>2018-04-04 15:05:20 -0400
commitfb929ab8e5d4d8cb3d3473223c8a17d779031609 (patch)
treea250990c131f7d3092b74160bcb94df164dd2abd /Source/Core
parent9be505fde2c695c90314b07a0ad90f537301f034 (diff)
DolphinQt2/CMakeLists: Specify Qt modules via COMPONENTS in the find_package call
Eliminates the need to find the individual modules separately
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt2/CMakeLists.txt b/Source/Core/DolphinQt2/CMakeLists.txt
index 92ac958609..eafe5eb923 100644
--- a/Source/Core/DolphinQt2/CMakeLists.txt
+++ b/Source/Core/DolphinQt2/CMakeLists.txt
@@ -1,10 +1,4 @@
-find_package(Qt5Widgets)
-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()
+find_package(Qt5 REQUIRED COMPONENTS Gui Widgets)
set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
message(STATUS "Found Qt version ${Qt5Core_VERSION}")