Skip to content

Commit 24e16e6

Browse files
committed
openblas vcpkg config required
1 parent bb3b262 commit 24e16e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/FindHipoDeps.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ if (NOT BLAS_ROOT STREQUAL "")
55
endif()
66

77
set(USE_CMAKE_FIND_BLAS ON)
8+
if (WIN32 AND (
9+
NOT BLA_VENDOR OR BLA_VENDOR STREQUAL "OpenBLAS"))
10+
set(USE_CMAKE_FIND_BLAS OFF)
11+
endif()
12+
813

914
# Optionally set the vendor:
1015
# set(BLA_VENDOR libblastrampoline)
@@ -28,7 +33,7 @@ if (NOT USE_CMAKE_FIND_BLAS)
2833
# (NOT OpenBLAS_FOUND AND NOT BLAS_FOUND))
2934
message(STATUS "Looking for blas")
3035

31-
find_package(OpenBLAS REQUIRED)
36+
find_package(OpenBLAS CONFIG REQUIRED)
3237

3338
if(OpenBLAS_FOUND)
3439
if(TARGET OpenBLAS::OpenBLAS)

0 commit comments

Comments
 (0)