Skip to content

Commit 1197e66

Browse files
committed
blas lookup for older win versions
1 parent 48188cc commit 1197e66

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cmake/FindHipoDeps.cmake

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@ set(BLAS_ROOT "" CACHE STRING "Root directory of BLAS or OpenBLAS")
33
message(STATUS "BLAS_ROOT is " ${BLAS_ROOT})
44

55
if (WIN32)
6-
find_package(OpenBLAS CONFIG REQUIRED)
6+
if (NOT (BLAS_ROOT STREQUAL ""))
7+
message(STATUS "Looking for blas in " ${BLAS_ROOT})
8+
set(OpenBLAS_ROOT ${BLAS_ROOT})
9+
find_package(OpenBLAS CONFIG NO_DEFAULT_PATH)
10+
11+
if(OpenBLAS_FOUND)
12+
message(STATUS "OpenBLAS CMake config path: ${metis_DIR}")
13+
else()
14+
find_package(OpenBLAS CONFIG REQUIRED)
15+
if(OpenBLAS_FOUND)
16+
message(STATUS "OpenBLAS CMake config path: ${metis_DIR}")
17+
endif()
18+
endif()
719
message(STATUS "OpenBLAS CMake config path: ${OpenBLAS_DIR}")
820
elseif(NOT APPLE)
921
# LINUX

0 commit comments

Comments
 (0)