summaryrefslogtreecommitdiff
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorIgor S. Gerasimov <i.s.ger@ya.ru>2021-08-07 11:20:15 +0300
committerBrad King <brad.king@kitware.com>2021-09-22 15:16:22 -0400
commit21250d4dd2e0e6cdb3da089b6f9e0d8e30614f40 (patch)
treec70da612e2fcda9d8e2585c6cc873af597d3fd33 /Modules/FindBLAS.cmake
parent84b7e2e15d6ed70474c345484c2961725f066142 (diff)
downloadcmake-21250d4dd2e0e6cdb3da089b6f9e0d8e30614f40.tar.gz
FindBLAS: Update OpenBLAS
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index ca3afc4215..5ce726c401 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -691,13 +691,15 @@ endif()
# OpenBLAS? (http://www.openblas.net)
if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
+ set(_blas_openblas_lib "openblas")
+
if(NOT BLAS_LIBRARIES)
check_blas_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
- "openblas"
+ "${_blas_openblas_lib}"
""
""
""
@@ -724,13 +726,15 @@ if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
BLAS
sgemm
""
- "openblas"
+ "${_blas_openblas_lib}"
"${_threadlibs}"
""
""
)
unset(_threadlibs)
endif()
+
+ unset(_blas_openblas_lib)
endif()
# ArmPL blas library? (https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-compiler-for-linux/arm-performance-libraries)