blob: 7f56ff66d50ef3aa42e3a1c31aaca439e574ae25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-BLAS_SRC_CMakeLists.txt,v 1.2 2021/05/12 14:32:51 thor Exp $
Support combined build of shared and static libraries.
--- BLAS/SRC/CMakeLists.txt.orig 2021-03-25 18:25:15.000000000 +0000
+++ BLAS/SRC/CMakeLists.txt
@@ -104,3 +104,13 @@ set_target_properties(
SOVERSION ${LAPACK_MAJOR_VERSION}
)
lapack_install_library(${BLASLIB})
+if(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
+ add_library(${BLASLIB}_static STATIC ${SOURCES})
+ set_target_properties(
+ ${BLASLIB}_static PROPERTIES
+ OUTPUT_NAME ${BLASLIB}
+ )
+ lapack_install_library(${BLASLIB}_static)
+endif()
+
+
|