aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Brown <nickbroon@gmail.com>2022-12-13 14:20:35 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-01-13 14:24:44 +0000
commit48ceadcf3938f47c95b0cf32784855e1651ccbdd (patch)
tree4c287b65b6f6f5094c639bc4d9b60a7393ef7a0a
parentf9a17487982ebc231ad0f32f15f261453aef8a88 (diff)
build: cmake NAMELINK_COMPONENT in vpp libraries
Installs the unversioned .so symlink in the -dev component. This prevent debian lintian error: link-to-shared-library-in-wrong-package NAMELINK_COMPONENT was added in cmake 3.12 Type: make Change-Id: I9d743218fa1f6b677659d745525e399ff66e73f4 Signed-off-by: Nick Brown <nickbroon@gmail.com>
-rw-r--r--src/cmake/library.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmake/library.cmake b/src/cmake/library.cmake
index ad4adfcabc4..45b3944eb34 100644
--- a/src/cmake/library.cmake
+++ b/src/cmake/library.cmake
@@ -41,8 +41,10 @@ macro(add_vpp_library lib)
endif()
install(
TARGETS ${lib}
- DESTINATION ${VPP_LIBRARY_DIR}
- COMPONENT ${ARG_COMPONENT}
+ LIBRARY
+ DESTINATION ${VPP_LIBRARY_DIR}
+ COMPONENT ${ARG_COMPONENT}
+ NAMELINK_COMPONENT ${ARG_COMPONENT}-dev
)
if (ARG_LTO AND VPP_USE_LTO)