diff --git a/cmake/find_scripts/FindLAPACKE.cmake b/cmake/find_scripts/FindLAPACKE.cmake index 38925c25986..89593e7e728 100644 --- a/cmake/find_scripts/FindLAPACKE.cmake +++ b/cmake/find_scripts/FindLAPACKE.cmake @@ -61,6 +61,7 @@ macro(_search_lapacke_pkgs) pkg_check_modules(PKGC_LAPACKE QUIET ${_pkg}) if(PKGC_LAPACKE_FOUND) set(LAPACKE_PKGCONFIG ${_pkg}) + break() endif() endforeach() endmacro()