Skip to content

FindLAPACK: Add '-fortranlibs' flag only with NVHPC/PGI compilers

Eisuke Kawashima requested to merge e-kwsm/cmake:FindLAPACK/NVHPC into master

Without this modification, CMake fails to find LAPACK if

  • compiler ID is GNU
  • BLA_STATIC is ON
  • BLA_VENDOR is not defined or set to All

This is a regression of 3.21 (!6089 (merged)).

Fixes: #23705 (closed), #22878 (closed)
Backport: release
Topic-rename: FindLAPACK-nvhpc

Edited by Brad King

Merge request reports