]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
CMake: cleanup Qt5 linking
authortobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 15:16:02 +0000 (17:16 +0200)
committertobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 15:16:02 +0000 (17:16 +0200)
src/CMakeLists.txt

index bd129b3e9db5d8f6952194fc192c4d73bc5b6d10..9d4877da475e7db72aff01d382485e0b19390195 100644 (file)
@@ -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()