From f5f151681d5e1f076ead94bf56f4f686765e7b62 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 21 Aug 2025 18:40:03 -0400 Subject: [PATCH] Fix HAVE_KUNIFIEDPUSH not applying anymore This compile-time definition was separated from the code during some refactor. --- src/app/CMakeLists.txt | 3 --- src/libneochat/CMakeLists.txt | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index a0c6818d1..3d117c538 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -342,9 +342,6 @@ if(TARGET KF6::DBusAddons AND NOT WIN32) endif() if (TARGET KUnifiedPush) - target_compile_definitions(neochat PUBLIC -DHAVE_KUNIFIEDPUSH) - target_link_libraries(neochat PUBLIC KUnifiedPush) - if (NOT ANDROID) configure_file(org.kde.neochat.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.neochat.service) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.neochat.service DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}) diff --git a/src/libneochat/CMakeLists.txt b/src/libneochat/CMakeLists.txt index 07b6dc4a2..de52563de 100644 --- a/src/libneochat/CMakeLists.txt +++ b/src/libneochat/CMakeLists.txt @@ -105,3 +105,8 @@ if(NOT ANDROID) ) target_compile_definitions(LibNeoChat PUBLIC -DHAVE_ICU) endif() + +if (TARGET KUnifiedPush) + target_compile_definitions(LibNeoChat PUBLIC -DHAVE_KUNIFIEDPUSH) + target_link_libraries(LibNeoChat PUBLIC KUnifiedPush) +endif()