From 28799bbe7984cc3c26aef9df0be2bf9833dd6ea2 Mon Sep 17 00:00:00 2001 From: spycrab Date: Mon, 4 Sep 2017 19:35:38 +0200 Subject: CMake: Build DolphinQt2 by default --- Source/Core/DolphinQt2/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/Core/DolphinQt2/CMakeLists.txt b/Source/Core/DolphinQt2/CMakeLists.txt index 04726b8434..7aa619b63f 100644 --- a/Source/Core/DolphinQt2/CMakeLists.txt +++ b/Source/Core/DolphinQt2/CMakeLists.txt @@ -1,5 +1,11 @@ -find_package(Qt5Widgets REQUIRED) -find_Package(Qt5Gui REQUIRED) +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() + set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "") message(STATUS "Found Qt version ${Qt5Core_VERSION}") -- cgit v1.2.3