void-packages/srcpkgs/lapack/patches/cmake-make-cblas-lapacke-soname.patch
Alessio Sergi df3c218808 lapack: update to 3.6.0
Build cblas and lapacke.
2016-02-17 19:07:17 +01:00

28 lines
744 B
Diff

diff --git CBLAS/CMakeLists.txt CBLAS/CMakeLists.txt
index 98b481f..1c9428e 100644
--- CBLAS/CMakeLists.txt
+++ CBLAS/CMakeLists.txt
@@ -87,4 +87,8 @@ install(FILES
#install(EXPORT cblas-targets
# DESTINATION lib/cmake/cblas-${LAPACK_VERSION})
-
+set_target_properties(
+ cblas PROPERTIES
+ VERSION ${LAPACK_VERSION}
+ SOVERSION ${LAPACK_MAJOR_VERSION}
+ )
diff --git LAPACKE/CMakeLists.txt LAPACKE/CMakeLists.txt
index 008f24c..e2cd9e0 100644
--- LAPACKE/CMakeLists.txt
+++ LAPACKE/CMakeLists.txt
@@ -86,3 +86,9 @@ install(FILES
install(EXPORT lapacke-targets
DESTINATION lib/cmake/lapacke-${LAPACK_VERSION})
+
+set_target_properties(
+ lapacke PROPERTIES
+ VERSION ${LAPACK_VERSION}
+ SOVERSION ${LAPACK_MAJOR_VERSION}
+ )