We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48188cc commit 1197e66Copy full SHA for 1197e66
cmake/FindHipoDeps.cmake
@@ -3,7 +3,19 @@ set(BLAS_ROOT "" CACHE STRING "Root directory of BLAS or OpenBLAS")
3
message(STATUS "BLAS_ROOT is " ${BLAS_ROOT})
4
5
if (WIN32)
6
- find_package(OpenBLAS CONFIG REQUIRED)
+ 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
16
17
+ endif()
18
19
message(STATUS "OpenBLAS CMake config path: ${OpenBLAS_DIR}")
20
elseif(NOT APPLE)
21
# LINUX
0 commit comments