void-packages/srcpkgs/libnest2d/patches/soversion.patch

22 lines
897 B
Diff

From 12b64796aee24d5af41df3a10c4313dc713c3e74 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Wed, 13 Jan 2021 21:51:34 -0500
Subject: [PATCH] CMake: add SOVERSION to shared library
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 374e90f..c2f2bec 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -95,6 +95,7 @@ if(NOT LIBNEST2D_HEADER_ONLY)
add_library(${LIBNAME} ${PROJECT_SOURCE_DIR}/src/libnest2d.cpp)
set_target_properties(${LIBNAME} PROPERTIES PREFIX "")
set_target_properties(${LIBNAME} PROPERTIES DEBUG_POSTFIX "d")
+ set_target_properties(${LIBNAME} PROPERTIES SOVERSION "1.0")
target_link_libraries(${LIBNAME} PUBLIC libnest2d_headeronly)
target_compile_definitions(${LIBNAME} PUBLIC LIBNEST2D_STATIC)
target_sources(${LIBNAME} PRIVATE ${LIBNEST2D_SRCFILES})