diff --git a/cmake/cblas.cmake b/cmake/cblas.cmake index 8e762be646acb814272f522cc229df307d88679e..69e66407580b62d52c941fee522bae7dbca23796 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})