From: Modestas Vainius <modax@debian.org>
Date: Thu, 21 Apr 2016 04:27:25 +0200
Subject: disable INSTALL_RPATH_USE_LINK_PATH where it triggers useless RPATH
 . kalzium: lintian output: 'binary-or-shlib-defines-rpath ./usr/bin/kalzium
 /usr/lib/ocaml', automatically rejected package.

---
 compoundviewer/CMakeLists.txt | 1 +
 src/CMakeLists.txt            | 1 +
 2 files changed, 2 insertions(+)

--- a/compoundviewer/CMakeLists.txt
+++ b/compoundviewer/CMakeLists.txt
@@ -5,6 +5,7 @@
     SOVERSION ${KALZIUMLIB_SOVERSION}
     CXX_STANDARD 14
     CXX_STANDARD_REQUIRED ON
+    INSTALL_RPATH_USE_LINK_PATH false
 )
 
 generate_export_header(compoundviewer)
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -190,6 +190,7 @@
 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-kalzium.png")
 ecm_add_app_icon(kalzium ICONS ${ICONS_SRCS})
 
+set_target_properties(kalzium PROPERTIES INSTALL_RPATH_USE_LINK_PATH false)
 target_link_libraries(kalzium
     KF${KF_MAJOR_VERSION}::ConfigWidgets
     KF${KF_MAJOR_VERSION}::ItemViews
