From 5ef77381d1c4def2cf48ff3ad114476e05af88e5 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 2 Aug 2026 10:58:52 -0400 Subject: [PATCH] build: simplify app lib links always link platform link only Qt6::Xml on non apple unix platforms --- src/lib/deskflow/CMakeLists.txt | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/src/lib/deskflow/CMakeLists.txt b/src/lib/deskflow/CMakeLists.txt index 13581adbc..676957903 100644 --- a/src/lib/deskflow/CMakeLists.txt +++ b/src/lib/deskflow/CMakeLists.txt @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello +# SPDX-FileCopyrightText: (C) 2024 - 2026 Chris Rizzitello # SPDX-FileCopyrightText: (C) 2012 - 2025 Symless Ltd # SPDX-FileCopyrightText: (C) 2009 - 2012 Nick Bolton # SPDX-License-Identifier: MIT @@ -89,26 +89,14 @@ add_library(${lib_name} STATIC ${PLATFORM_CODE} ipc/CoreIpcServer.h ) -target_link_libraries(${lib_name} PUBLIC common Qt6::Core Qt6::Network) - -if(WIN32) - target_link_libraries(${lib_name} PRIVATE platform) -endif() - -if(UNIX) - target_link_libraries( - ${lib_name} - PRIVATE - arch - client - net - base +target_link_libraries(${lib_name} + PUBLIC + common + Qt6::Network + PRIVATE platform - mt - server ) - if(NOT APPLE) - target_link_libraries(${lib_name} PRIVATE Qt6::Xml) - endif() +if(UNIX AND NOT APPLE) + target_link_libraries(${lib_name} PRIVATE server Qt6::Xml) endif()