Skip to content

Commit b7ec8da

Browse files
committed
update linux blas lookup
1 parent 75ccc61 commit b7ec8da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmake/FindHipoDeps.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ elseif(NOT APPLE)
1111
# If a BLAS install was specified try to use it first.
1212
if (NOT (BLAS_ROOT STREQUAL ""))
1313
message(STATUS "Looking for blas CMake targets file in " ${BLAS_ROOT})
14-
find_package(OpenBLAS CONFIG NO_DEFAULT_PATH)
14+
find_package(OpenBLAS NO_DEFAULT_PATH)
1515
else()
16-
find_package(OpenBLAS CONFIG)
16+
find_package(OpenBLAS)
1717
endif()
1818

1919
if(OpenBLAS_FOUND)
2020
message(STATUS "OpenBLAS CMake config path: ${OpenBLAS_DIR}")
21+
set(OPENBLAS_LIB OpenBLAS::OpenBLAS)
2122
else()
2223
find_library(OPENBLAS_LIB
2324
NAMES openblas
@@ -27,8 +28,8 @@ elseif(NOT APPLE)
2728
message("Found OpenBLAS library at ${OPENBLAS_LIB}")
2829
else()
2930
find_library(BLAS_LIB
30-
NAMES blas HINTS
31-
"${BLAS_ROOT}/lib")
31+
NAMES blas
32+
HINTS "${BLAS_ROOT}/lib")
3233

3334
if(BLAS_LIB)
3435
message("Found BLAS library at ${BLAS_LIB}")
@@ -111,7 +112,7 @@ if (NOT (GKLIB_ROOT STREQUAL ""))
111112

112113
else()
113114
find_path(GKLIB_PATH
114-
NAMES "gklib.h" "GKlib.h"
115+
NAMES "gklib.h"
115116
REQUIRED
116117
PATHS "${GKLIB_ROOT}/include"
117118
NO_DEFAULT_PATH)

0 commit comments

Comments
 (0)