diff --git a/modules/find/FindLAPACKE.cmake b/modules/find/FindLAPACKE.cmake index e2b448fcefed93d04382fa25c9d4cd7cb3e1b986..ab25a2b983406182f21971014c166c152b1ab3d5 100644 --- a/modules/find/FindLAPACKE.cmake +++ b/modules/find/FindLAPACKE.cmake @@ -131,6 +131,9 @@ if (LAPACK_FOUND) unset(LAPACKE_WORKS CACHE) check_function_exists(LAPACKE_dgeqrf LAPACKE_WORKS) mark_as_advanced(LAPACKE_WORKS) + unset(LAPACKE_WITH_LASCL CACHE) + check_function_exists(LAPACKE_dlascl_work LAPACKE_WITH_LASCL) + mark_as_advanced(LAPACKE_WITH_LASCL) set(CMAKE_REQUIRED_LIBRARIES) if(LAPACKE_WORKS) @@ -436,7 +439,7 @@ if (LAPACK_FOUND) endif() mark_as_advanced(LAPACKE_WORKS) unset(LAPACKE_WITH_LASCL CACHE) - check_function_exists(LAPACKE_dlascl LAPACKE_WITH_LASCL) + check_function_exists(LAPACKE_dlascl_work LAPACKE_WITH_LASCL) mark_as_advanced(LAPACKE_WITH_LASCL) if(LAPACKE_WORKS)