File: 0006-Do-not-export-tools-with-library-config.patch

package info (click to toggle)
iceoryx 2.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,260 kB
  • sloc: cpp: 94,127; ansic: 1,443; sh: 1,436; python: 1,377; xml: 80; makefile: 61
file content (40 lines) | stat: -rw-r--r-- 1,421 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
32
33
34
35
36
37
38
39
40
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 1 Nov 2021 13:10:36 +0100
Subject: Do not export tools with library config

Forwarded: not-needed
---
 iceoryx_posh/CMakeLists.txt        | 3 ++-
 tools/introspection/CMakeLists.txt | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/iceoryx_posh/CMakeLists.txt b/iceoryx_posh/CMakeLists.txt
index a2bb80c..725f67a 100644
--- a/iceoryx_posh/CMakeLists.txt
+++ b/iceoryx_posh/CMakeLists.txt
@@ -389,7 +389,8 @@ endif()
 ########## exporting library ##########
 #
 if(TOML_CONFIG)
-    set(ROUDI_EXPORT iceoryx_posh_config iox-roudi)
+    set(ROUDI_EXPORT iceoryx_posh_config)
+    install(TARGETS iox-roudi DESTINATION ${DESTINATION_BINDIR} COMPONENT bin)
 endif()
 
 setup_install_directories_and_export_package(
diff --git a/tools/introspection/CMakeLists.txt b/tools/introspection/CMakeLists.txt
index c393e40..9fb9d38 100644
--- a/tools/introspection/CMakeLists.txt
+++ b/tools/introspection/CMakeLists.txt
@@ -117,8 +117,10 @@ target_compile_options(iox-introspection-client PRIVATE ${ICEORYX_WARNINGS} ${IC
 #
 ########## exporting library ##########
 #
+install(TARGETS iox-introspection-client DESTINATION ${DESTINATION_BINDIR} COMPONENT bin)
+
 setup_install_directories_and_export_package(
-    TARGETS iceoryx_introspection iox-introspection-client
+    TARGETS iceoryx_introspection
     INCLUDE_DIRECTORY include/
 )