mirror of
https://github.com/opencv/opencv.git
synced 2026-01-18 17:21:42 +01:00
Fix OpenBLAS detection on Fedora/RHEL (Issue #28049)
This commit is contained in:
@@ -20,8 +20,10 @@ if(NOT OpenBLAS_FOUND)
|
||||
endif()
|
||||
|
||||
if(NOT OpenBLAS_FOUND)
|
||||
find_library(OpenBLAS_LIBRARIES NAMES openblas)
|
||||
find_path(OpenBLAS_INCLUDE_DIRS NAMES cblas.h)
|
||||
find_library(OpenBLAS_LIBRARIES NAMES openblasp openblas)
|
||||
find_path(OpenBLAS_INCLUDE_DIRS
|
||||
NAMES cblas.h
|
||||
PATH_SUFFIXES openblas)
|
||||
find_path(OpenBLAS_LAPACKE_DIR NAMES lapacke.h PATHS "${OpenBLAS_INCLUDE_DIRS}")
|
||||
if(OpenBLAS_LIBRARIES AND OpenBLAS_INCLUDE_DIRS)
|
||||
message(STATUS "Found OpenBLAS in the system")
|
||||
|
||||
Reference in New Issue
Block a user