diff --git a/cmake/modules/FindSuperLU.cmake b/cmake/modules/FindSuperLU.cmake index 52c1789ae58e2f773b036a69c25f190161c61925..7b03c9ee6418840111535e6f0ac6d9f20cc4f2a5 100644 --- a/cmake/modules/FindSuperLU.cmake +++ b/cmake/modules/FindSuperLU.cmake @@ -11,10 +11,10 @@ # SUPERLU_LIBRARIES Name to the SuperLU library. # find_package(BLAS QUIET REQUIRED) -if(NOT BLAS_FOUND AND REQUIRED) - message("BLAS not found but required for SuperLU") +if(NOT BLAS_FOUND) + message("SuperLU requires BLAS which was not found, skipping the test.") return() -endif(NOT BLAS_FOUND AND REQUIRED) +endif(NOT BLAS_FOUND) # look for header files, only at positions given by the user find_path(SUPERLU_INCLUDE_DIR