From 169bfc93e72a2f00c1ffea0cb23d40e2e71d9041 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 20 Apr 2023 17:16:02 +0200 Subject: [PATCH] CMake: cleanup Qt5 linking --- src/CMakeLists.txt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bd129b3..9d4877d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -283,25 +283,14 @@ if (WITH_SCANNER) ) endif() -if(NOT APPLE AND NOT Qt6_FOUND) +if(UNIX AND NOT APPLE AND STATIC AND NOT Qt6_FOUND) target_link_libraries(feather Qt5::QSvgIconPlugin Qt5::QSvgPlugin + Qt5::QXcbIntegrationPlugin ) endif() -if(STATIC AND NOT Qt6_FOUND) - if(NOT Qt6_FOUND) - target_link_libraries(feather - Qt5::QSvgIconPlugin - Qt5::QSvgPlugin) - endif() - if(UNIX AND NOT APPLE) - target_link_libraries(feather - Qt5::QXcbIntegrationPlugin) - endif() -endif() - if(STATIC AND UNIX AND NOT APPLE AND Qt6_FOUND) target_link_libraries(feather Qt6::QComposePlatformInputContextPlugin) endif()