Requested changes from Ben Boeckel,
also adjusted the similar if("${...}" MATCHES ...) statements in the section
above.
Regards
Melven
--
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
German Aerospace Center
Simulation and Software Technology | Linder Hoehe |
After thinking about my patch I worried it could break other compilers.
So, here is a more defensive version that shouldn't interfere with anything
else.
Explanation:
CMAKE_Fortran_COMPILER_ID was correctly set to "GNU";
If CMAKE_Fortran_PLATFORM_IS is missing, run gfortran with a C file
->
Just use the existing fallback if CMAKE_Fortran_PLATFORM_ID is not detected.
I hope this doesn't break any other compiler variants, but the compiler id and
the platform id are needed...
(so they are already half-broken if this patch changes their behavior, right?)
Regards
Melven
Updated patch for a problem with find_package(BLAS/LAPACK) on Windows for pure
Fortran projects.
Now simply uses CMAKE__COMPILER_LOADED...
Regards,
Melven
--
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
German Aerospace Center
Simulation and Software Technology |
Patch for a problem with find_package(BLAS/LAPACK) on Windows for pure Fortran
projects reported by me in https://cmake.org/Bug/view.php?id=16039.
Regards,
Melven
--
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
German Aerospace Center
Simulation and Software