aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Sirgienko <[email protected]>2018-03-25 18:02:06 +0200
committerAlbert Astals Cid <[email protected]>2018-03-25 18:02:39 +0200
commit00f83d2373df93d3e9937ec4cd0ff22e01a89f15 (patch)
tree0a0680a793def4cac6b12f42117ef442fb52390a
parent6f5f23f369afc8092028d78332858ae04e803f4e (diff)
Add build compatibility qalculate-backend with libqalculate < 2.0.0
Summary: According to https://phabricator.kde.org/D7590 @filipesaraiva remove cln linking on commit 6ad659fc436a400756f3168ed3ca521b22195506. 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
-rw-r--r--src/backends/qalculate/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backends/qalculate/CMakeLists.txt b/src/backends/qalculate/CMakeLists.txt
index 1e75a84..30d2367 100644
--- a/src/backends/qalculate/CMakeLists.txt
+++ b/src/backends/qalculate/CMakeLists.txt
@@ -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} )