Skip to content

Commit

Permalink
FindScalapack: don't search for Lapack again unless needed to avoid c…
Browse files Browse the repository at this point in the history
…omponents changes
  • Loading branch information
scivision committed Oct 21, 2021
1 parent af3df4a commit 3345bb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/Modules/FindSCALAPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ if(NOT Fortran IN_LIST enabled_langs)
endif()

find_package(MPI COMPONENTS C Fortran)
find_package(LAPACK)
if(NOT LAPACK_FOUND)
# otherwise can cause 32-bit lapack when 64-bit wanted
find_package(LAPACK)
endif()
if(NOT (MPI_Fortran_FOUND AND LAPACK_FOUND))
return()
endif()
Expand Down

0 comments on commit 3345bb5

Please sign in to comment.