File: cmake_shared_library.patch

package info (click to toggle)
fenics-basix 0.10.0.post0-1exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,144 kB
  • sloc: cpp: 23,435; python: 10,829; makefile: 40; sh: 26
file content (15 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: fenics-basix/cpp/CMakeLists.txt
===================================================================
--- fenics-basix.orig/cpp/CMakeLists.txt	2025-11-12 00:14:38.809110551 +0100
+++ fenics-basix/cpp/CMakeLists.txt	2025-11-12 00:15:31.837272406 +0100
@@ -143,6 +143,10 @@
   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
 )
+set_target_properties(basix PROPERTIES
+  VERSION ${PROJECT_VERSION}
+  SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
+)
 if (INSTALL_RUNTIME_DEPENDENCIES AND WIN32)
   # https://discourse.cmake.org/t/migration-experiences-comparison-runtime-dependency-set-vs-fixup-bundle-bundleutilities
   install(RUNTIME_DEPENDENCY_SET dependencies DESTINATION ${CMAKE_INSTALL_BINDIR} PRE_EXCLUDE_REGEXES [[api-ms-win-.*]] [[ext-ms-.*]] POST_EXCLUDE_REGEXES [[.*(\\|/)system32(\\|/).*\.dll]])