Skip to content

Commit 5483232

Browse files
committed
cmake : hardcode "lib" prefix for OpenBLAS lib filename (even on Windows)
1 parent 3b53bd2 commit 5483232

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ if (WHISPER_BLAS)
198198
set(WHISPER_BLAS_LIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
199199
endif ()
200200
endif ()
201+
# OpenBLAS prebuilt libraries hardcode "lib" prefix in filename even on Windows
202+
if (WHISPER_OPENBLAS)
203+
set(WHISPER_BLAS_LIB_PREFIX "lib")
204+
endif ()
201205
message(STATUS "BLAS compatible library path provided")
202206
set(BLAS_LIBRARIES "$ENV{OPENBLAS_PATH}/lib/${WHISPER_BLAS_LIB_PREFIX}${WHISPER_BLAS_LIB}${WHISPER_BLAS_LIB_SUFFIX}")
203207
message(STATUS "Libraries ${BLAS_LIBRARIES}")

0 commit comments

Comments
 (0)