File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments