Browse Source

FindLAPACK: Update Generic LAPACK

Igor S. Gerasimov 4 years ago
parent
commit
2531e464df
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Modules/FindLAPACK.cmake

+ 4 - 1
Modules/FindLAPACK.cmake

@@ -613,6 +613,7 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
       AND (BLA_VENDOR STREQUAL "Generic"
            OR BLA_VENDOR STREQUAL "ATLAS"
            OR BLA_VENDOR STREQUAL "All"))
+    set(_lapack_generic_lib "lapack")
     if(BLA_STATIC)
       # We do not know for sure how the LAPACK reference implementation
       # is built on this host.  Guess typical dependencies.
@@ -625,13 +626,15 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
       LAPACK
       cheev
       ""
-      "lapack"
+      "${_lapack_generic_lib}"
       "${_lapack_generic_deps}"
       ""
       ""
       "${BLAS_LIBRARIES}"
     )
+
     unset(_lapack_generic_deps)
+    unset(_lapack_generic_lib)
   endif()
 endif()