Skip to content

Commit fa9dfc9

Browse files
committed
cmake : hardcode OpenBLAS library name when building in MSVC (Windows)
Most *nix like environments (including MSYS2 on Windows) have OpenBLAS packages that allow coexistence of OpenBLAS builds with 32-bit and 64-bit interface (w/o and w/ OPENBLAS_USE64BITINT defined) and they differ by not having or having "64" suffix in their library filenames. That's not the case for OpenBLAS prebuilt libraries for Windows.
1 parent 5483232 commit fa9dfc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ if (WHISPER_OPENBLAS)
182182
set(WHISPER_BLAS_LIB "openblas")
183183
endif ()
184184
set(BLA_PKGCONFIG_BLAS ${WHISPER_BLAS_LIB})
185+
# OpenBLAS prebuilt libraries for Windows do not have "64" suffix in filename.
186+
# (But .pc file has "64" suffix in filename for USE_64BITINT=1 Windows build.)
187+
if (MSVC)
188+
set(WHISPER_BLAS_LIB "openblas")
189+
endif ()
185190
endif()
186191

187192
if (WHISPER_BLAS)

0 commit comments

Comments
 (0)