Fix HAVE_KUNIFIEDPUSH not applying anymore

This compile-time definition was separated from the code during some
refactor.
This commit is contained in:
Joshua Goins
2025-08-21 18:40:03 -04:00
parent 306d75a9b0
commit f5f151681d
2 changed files with 5 additions and 3 deletions

View File

@@ -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})

View File

@@ -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()