void-packages/srcpkgs/lapack/patches/cmake-make-cblas-lapacke-soname.patch
2020-02-18 19:25:04 +01:00

34 lines
945 B
Diff

diff --git CBLAS/CMakeLists.txt CBLAS/CMakeLists.txt
index 04c5ab79..8fa3b7d4 100644
--- CBLAS/CMakeLists.txt
+++ CBLAS/CMakeLists.txt
@@ -88,6 +88,12 @@ install(FILES
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION}
)
+set_target_properties(
+ cblas PROPERTIES
+ VERSION ${LAPACK_VERSION}
+ SOVERSION ${LAPACK_MAJOR_VERSION}
+ )
+
#install(EXPORT cblas-targets
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cblas-${LAPACK_VERSION}
# COMPONENT Development
diff --git LAPACKE/CMakeLists.txt LAPACKE/CMakeLists.txt
index 0589a74b..adc87a3e 100644
--- LAPACKE/CMakeLists.txt
+++ LAPACKE/CMakeLists.txt
@@ -126,6 +126,12 @@ install(FILES
COMPONENT Development
)
+set_target_properties(
+ lapacke PROPERTIES
+ VERSION ${LAPACK_VERSION}
+ SOVERSION ${LAPACK_MAJOR_VERSION}
+ )
+
install(EXPORT lapacke-targets
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/lapacke-${LAPACK_VERSION}
COMPONENT Development