From 52d42ef2a8cd6f23771e5c017550f0cc7837eaed Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 1 Oct 2020 19:47:21 +0200 Subject: [PATCH] Use BUILD_WITH_QT6 --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 991c781e9..c09b1f33f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -607,7 +607,7 @@ if(UNIX AND HAVE_DBUS) HEADERS device/udisks2lister.h ) - if (Qt6Core_FOUND) + if (BUILD_WITH_QT6) # MPRIS 2.0 DBUS interfaces qt6_add_dbus_adaptor(SOURCES @@ -704,7 +704,7 @@ if(UNIX AND HAVE_DBUS) PROPERTIES NO_NAMESPACE dbus/udisks2drive INCLUDE dbus/metatypes.h) set_source_files_properties(dbus/org.freedesktop.UDisks2.Job.xml PROPERTIES NO_NAMESPACE dbus/udisks2job INCLUDE dbus/metatypes.h) - if(Qt6Core_FOUND) + if(BUILD_WITH_QT6) qt6_add_dbus_interface(SOURCES dbus/org.freedesktop.DBus.ObjectManager.xml dbus/objectmanager) @@ -987,7 +987,7 @@ optional_source(HAVE_MOODBAR configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h) -if(Qt6Core_FOUND) +if(BUILD_WITH_QT6) qt6_wrap_cpp(MOC ${HEADERS}) qt6_wrap_ui(UIC ${UI}) qt6_add_resources(QRC ${RESOURCES})