Skip to content

Commit

Permalink
Don't link to KF5Archive when not using it
Browse files Browse the repository at this point in the history
That is, when not building the client or tools.
  • Loading branch information
askmeaboutlo0m committed Aug 9, 2024
1 parent 70d487e commit 28bb776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawdance/libcommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 28bb776

Please sign in to comment.