From e42e3f70547cf66e70f9b591e5f67fe95b9bfb96 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 10 Jun 2020 14:02:20 +0200 Subject: CMake: Make ThemeSupport an optional component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It became an optional component after the qtbase change 788cd98b357fdc9dd8b0f0b1baf1033f0efa1f11 So make it optional. This fixes top-level builds on macOS (and probably other platforms). Amends 09cb3a30900353dea710cf7d614087c0718dce52 Change-Id: I1012923997201673b628a0ee5e512df31228f4cc Reviewed-by: MÃ¥rten Nordheim --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1617721d..a3bb9e4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,6 @@ find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core Gui EventDispatcherSupport - ThemeSupport ) find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS @@ -47,9 +46,17 @@ find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick ServiceSupport XkbCommonSupport + ThemeSupport ) # special case end +# special case begin +# Moved above. +#if(NOT MACOS AND NOT QNX AND (ANDROID OR NOT LINUX)) +# message(NOTICE "Skipping the build as the condition \"LINUX OR MACOS OR QNX\" is not met.") +# return() +#endif() +# special case end if(NOT TARGET Qt::Gui) message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.") return() -- cgit v1.2.1