diff --git a/modules/find/FindLAPACKE.cmake b/modules/find/FindLAPACKE.cmake index a024407e0832cfa43ec29f0eefdb2bbdffa42e82..e2b448fcefed93d04382fa25c9d4cd7cb3e1b986 100644 --- a/modules/find/FindLAPACKE.cmake +++ b/modules/find/FindLAPACKE.cmake @@ -435,6 +435,9 @@ if (LAPACK_FOUND) check_function_exists(LAPACKE_dlatms_work LAPACKE_WORKS) endif() mark_as_advanced(LAPACKE_WORKS) + unset(LAPACKE_WITH_LASCL CACHE) + check_function_exists(LAPACKE_dlascl LAPACKE_WITH_LASCL) + mark_as_advanced(LAPACKE_WITH_LASCL) if(LAPACKE_WORKS) # save link with dependencies