diff --git a/modules/math/cblas.cmake b/modules/math/cblas.cmake index 756614a..47a11c5 100644 --- a/modules/math/cblas.cmake +++ b/modules/math/cblas.cmake @@ -33,8 +33,8 @@ if(ENABLE_CBLAS) _find_include_dir(cblas.h /usr CBLAS_INCLUDE_DIR) endif() - if(NOT "${CBLAS_LIBRARIES}" STREQUAL "NOTFOUND") - if(NOT "${CBLAS_INCLUDE_DIR}" STREQUAL "NOTFOUND") + if(NOT "${CBLAS_LIBRARIES}" MATCHES "NOTFOUND") + if(NOT "${CBLAS_INCLUDE_DIR}" MATCHES "NOTFOUND") set(CBLAS_FOUND TRUE) endif() endif() diff --git a/modules/math/lapacke.cmake b/modules/math/lapacke.cmake index 37be36e..e7dfcad 100644 --- a/modules/math/lapacke.cmake +++ b/modules/math/lapacke.cmake @@ -33,8 +33,8 @@ if(ENABLE_LAPACKE) _find_include_dir(lapacke.h /usr LAPACKE_INCLUDE_DIR) # endif() - if(NOT "${LAPACKE_LIBRARIES}" STREQUAL "NOTFOUND") - if(NOT "${LAPACKE_INCLUDE_DIR}" STREQUAL "NOTFOUND") + if(NOT "${LAPACKE_LIBRARIES}" MATCHES "NOTFOUND") + if(NOT "${LAPACKE_INCLUDE_DIR}" MATCHES "NOTFOUND") set(LAPACKE_FOUND TRUE) endif() endif()