From 28bb776e93a280a4ca9faceb2f7429d83d437c3f Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Fri, 9 Aug 2024 08:00:40 +0200 Subject: [PATCH] Don't link to KF5Archive when not using it That is, when not building the client or tools. --- src/drawdance/libcommon/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawdance/libcommon/CMakeLists.txt b/src/drawdance/libcommon/CMakeLists.txt index bf15ab13d5..eb6a645569 100644 --- a/src/drawdance/libcommon/CMakeLists.txt +++ b/src/drawdance/libcommon/CMakeLists.txt @@ -82,7 +82,7 @@ if(FILE_IO_IMPL STREQUAL "QT") ) target_link_libraries(dpcommon PUBLIC "Qt${QT_VERSION_MAJOR}::Core") - if(ZIP_IMPL STREQUAL "KARCHIVE") + if(CLIENT OR TOOLS AND ZIP_IMPL STREQUAL "KARCHIVE") target_compile_definitions(dpcommon PUBLIC DP_QT_IO_KARCHIVE) target_link_libraries(dpcommon PUBLIC "KF${QT_VERSION_MAJOR}::Archive") endif()