Update OpenCVFindOpenBLAS.cmake to accomodate alternative lib name

openBLAS windows release calls their library libopenblas which was not recognized before. see #24268
This commit is contained in:
FlyinTeller 2023-09-14 09:04:41 +02:00 committed by GitHub
parent 4790a3732e
commit 347a1e2913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ SET(Open_BLAS_LIB_SEARCH_PATHS
) )
FIND_PATH(OpenBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Open_BLAS_INCLUDE_SEARCH_PATHS} NO_DEFAULT_PATH) FIND_PATH(OpenBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Open_BLAS_INCLUDE_SEARCH_PATHS} NO_DEFAULT_PATH)
FIND_LIBRARY(OpenBLAS_LIB NAMES openblas PATHS ${Open_BLAS_LIB_SEARCH_PATHS} NO_DEFAULT_PATH) FIND_LIBRARY(OpenBLAS_LIB NAMES openblas libopenblas PATHS ${Open_BLAS_LIB_SEARCH_PATHS} NO_DEFAULT_PATH)
SET(OpenBLAS_FOUND ON) SET(OpenBLAS_FOUND ON)