FindLAPACK passes the NVHPC /fortranlibs switch to MSVC
I use FindLAPACK
in an MSVC environment where the LAPACK_lapack_LIBRARY
CMake cache variable is manually set to the corresponding liblapack.lib
. Then, however, the unsupported -fortranlibs
switch is passed to MSVC linker as well resulting in the following warning:
LINK : warning LNK4044: unrecognized option '/fortranlibs'; ignored
FindLAPACK
should check whether linker supports this flag first and only then pass it.