From ab0272eb32f064a8ab6d88ca3a72ec454fde4a64 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 17 Jun 2021 17:47:37 +0800 Subject: [PATCH] Relax the constraint of installed openblas from version==0.3.7 to >=0.3.7 (#33626) --- cmake/cblas.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cblas.cmake b/cmake/cblas.cmake index 8e762be646a..69e66407580 100644 --- a/cmake/cblas.cmake +++ b/cmake/cblas.cmake @@ -73,7 +73,7 @@ if(NOT DEFINED CBLAS_PROVIDER) string(REGEX MATCH "OpenBLAS ([0-9]+\.[0-9]+\.[0-9]+)" tmp ${config_file}) string(REGEX MATCH "([0-9]+\.[0-9]+\.[0-9]+)" ver ${tmp}) - if (${ver} VERSION_EQUAL "0.3.7") + if (${ver} VERSION_GREATER_EQUAL "0.3.7") set(CBLAS_PROVIDER OPENBLAS) set(CBLAS_INC_DIR ${OPENBLAS_INC_DIR} ${OPENBLAS_LAPACKE_INC_DIR}) set(CBLAS_LIBRARIES ${OPENBLAS_LIB}) -- GitLab