Skip to content

Commit 34d02f9

Browse files
committed
RollBACK the openblas.cmake
1 parent 7835d49 commit 34d02f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/external/openblas.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ INCLUDE_DIRECTORIES(${CBLAS_INC_DIR})
115115
# linear algebra libraries for cc_library(xxx SRCS xxx.c DEPS cblas)
116116
SET(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/cblas_dummy.c)
117117
FILE(WRITE ${dummyfile} "const char * dummy = \"${dummyfile}\";")
118-
ADD_LIBRARY(cblas STATIC ${dummyfile})
118+
IF(${CBLAS_PROVIDER} EQUAL MKLML)
119+
ADD_LIBRARY(cblas SHARED ${dummyfile})
120+
ELSE()
121+
ADD_LIBRARY(cblas STATIC ${dummyfile})
122+
ENDIF()
119123
TARGET_LINK_LIBRARIES(cblas ${CBLAS_LIBRARIES})
120124

121125
IF(NOT ${CBLAS_FOUND})

0 commit comments

Comments
 (0)