From d6272d3e2f130aa250fe2b6890d8e7fef329c099 Mon Sep 17 00:00:00 2001 From: ck Date: Mon, 22 Jul 2024 16:04:26 +0800 Subject: [PATCH] fix(build): failed when qt6xdg not found remove required xdg --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a7cb0aa..6f6cf7cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,9 +105,8 @@ endfunction() find_package(Dtk${VERSION_SUFFIX} REQUIRED COMPONENTS Widget) option(ENABLE_QT_XDG_ICON_LOADER "Enable QtXdgIconLoader" ON) -find_package(Qt${QT_VERSION_MAJOR}XdgIconLoader) -find_package(Qt${QT_VERSION_MAJOR}Xdg REQUIRED) -if (NOT Qt${QT_VERSION_MAJOR}XdgIconLoader_FOUND) +find_package(Qt${QT_VERSION_MAJOR}Xdg) +if (NOT Qt${QT_VERSION_MAJOR}Xdg_FOUND) message(WARNING " Qt${QT_VERSION_MAJOR}XdgIconLoader Not Found, DISABLE QtXdgIconLoader !") set (ENABLE_QT_XDG_ICON_LOADER OFF) endif()