File: cmake_shared_library.patch

package info (click to toggle)
fenics-basix 0.9.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,084 kB
  • sloc: cpp: 22,542; python: 10,184; makefile: 40; sh: 24
file content (12 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -147,6 +147,9 @@
   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})
 endif()
 
 # Configure CMake helpers