Skip to content
Snippets Groups Projects
Commit 28d52a43 authored by Eisuke Kawashima's avatar Eisuke Kawashima Committed by Brad King
Browse files

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

Since commit 2c9e623e (Find{BLAS,LAPACK}: Add support for the NVHPC
LAPACK library, 2021-05-05, v3.21.0-rc1~192^2) we try the `-fortranlibs`
option as a dependency of the NVHPC LAPACK.  That flag is specific to
the NVHPC/PGI compilers, so use it conditionally with them.

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`

Fixes: #23705, #22878
parent 7b43112b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment