Skip to content
Snippets Groups Projects
Commit cb6889a0 authored by Brad King's avatar Brad King
Browse files

FindLAPACK: Fix finding generic LAPACK with BLA_STATIC

Fixes: #21071
parent 193714d6
No related branches found
No related tags found
No related merge requests found
......@@ -620,17 +620,25 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
AND (BLA_VENDOR STREQUAL "Generic"
OR BLA_VENDOR STREQUAL "ATLAS"
OR BLA_VENDOR STREQUAL "All"))
if(BLA_STATIC)
# We do not know for sure how the LAPACK reference implementation
# is built on this host. Guess typical dependencies.
set(_lapack_generic_deps "-lgfortran;-lm")
else()
set(_lapack_generic_deps "")
endif()
check_lapack_libraries(
LAPACK_LIBRARIES
LAPACK
cheev
""
"lapack"
""
"${_lapack_generic_deps}"
""
""
"${BLAS_LIBRARIES}"
)
unset(_lapack_generic_deps)
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment