Skip to content

Commit b0f83ed

Browse files
authored
Merge pull request #6347 from Yancey1989/static_libcblas
Compile cblas library as static
2 parents 6f08a21 + c53a9c8 commit b0f83ed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmake/external/openblas.cmake

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

124120
IF(NOT ${CBLAS_FOUND})

0 commit comments

Comments
 (0)