File: no_install_rpath_use_link_path.diff

package info (click to toggle)
kalzium 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 57,996 kB
  • sloc: xml: 27,625; cpp: 15,364; ml: 784; makefile: 68; ansic: 32; sh: 10
file content (31 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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