diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a7cb0a..6f6cf7c 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()