Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 00f83d23 authored by Nikita Sirgienko's avatar Nikita Sirgienko Committed by Albert Astals Cid

Add build compatibility qalculate-backend with libqalculate < 2.0.0

Summary:
According to https://phabricator.kde.org/D7590 @filipesaraiva remove cln linking on commit 6ad659fc.
It's cause a lot of ld errors (undefined references), if you have libqalculate with version less 2.0.0.
I have changed this to link cln library depending on the version of libqalculate.

Reviewers: #cantor, asemke

Reviewed By: #cantor, asemke

Subscribers: #cantor, filipesaraiva, #kde_edu

Tags: #kde_edu, #cantor

Differential Revision: https://phabricator.kde.org/D11574
parent 6f5f23f3
......@@ -22,6 +22,10 @@ ki18n_wrap_ui(QalculateBackend_SRCS settings.ui)
add_backend(qalculatebackend ${QalculateBackend_SRCS})
target_link_libraries( cantor_qalculatebackend cantorlibs ${QALCULATE_LIBRARIES} )
if (QALCULATE_VERSION VERSION_LESS 2.0.0)
target_link_libraries( cantor_qalculatebackend cantorlibs ${QALCULATE_LIBRARIES} ${CLN_LIBRARIES})
else()
target_link_libraries( cantor_qalculatebackend cantorlibs ${QALCULATE_LIBRARIES})
endif()
install( FILES cantor_qalculate.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment