File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ endif ()
75
75
76
76
set (SUBDIRS ${BLASDIRS} )
77
77
if (NOT NO_LAPACK )
78
- list (APPEND SUBDIRS lapack )
79
78
if (BUILD_RELAPACK )
80
79
list (APPEND SUBDIRS relapack/src )
81
80
endif ()
81
+ list (APPEND SUBDIRS lapack )
82
82
endif ()
83
83
84
84
# set which float types we want to build for
@@ -224,6 +224,14 @@ set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES
224
224
SOVERSION ${OpenBLAS_MAJOR_VERSION}
225
225
)
226
226
227
+ if (BUILD_SHARED_LIBS AND BUILD_RELAPACK )
228
+ if (NOT MSVC )
229
+ target_link_libraries (${OpenBLAS_LIBNAME} "-Wl,-allow-multiple-definition" )
230
+ else ()
231
+ target_link_libraries (${OpenBLAS_LIBNAME} "/FORCE:MULTIPLE" )
232
+ endif ()
233
+ endif ()
234
+
227
235
if (BUILD_SHARED_LIBS AND NOT ${SYMBOLPREFIX}${SYMBOLSUFIX} STREQUAL "" )
228
236
if (NOT DEFINED ARCH )
229
237
set (ARCH_IN "x86_64" )
You can’t perform that action at this time.
0 commit comments