We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7835d49 commit 34d02f9Copy full SHA for 34d02f9
cmake/external/openblas.cmake
@@ -115,7 +115,11 @@ INCLUDE_DIRECTORIES(${CBLAS_INC_DIR})
115
# linear algebra libraries for cc_library(xxx SRCS xxx.c DEPS cblas)
116
SET(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/cblas_dummy.c)
117
FILE(WRITE ${dummyfile} "const char * dummy = \"${dummyfile}\";")
118
-ADD_LIBRARY(cblas STATIC ${dummyfile})
+IF(${CBLAS_PROVIDER} EQUAL MKLML)
119
+ ADD_LIBRARY(cblas SHARED ${dummyfile})
120
+ELSE()
121
+ ADD_LIBRARY(cblas STATIC ${dummyfile})
122
+ENDIF()
123
TARGET_LINK_LIBRARIES(cblas ${CBLAS_LIBRARIES})
124
125
IF(NOT ${CBLAS_FOUND})
0 commit comments