[cmake-developers] [PATCH] Fix CMAKE_Fortran_PLATFORM_ID on mingw-w64

2016-04-05 Thread Melven.Roehrig-Zoellner
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 |

[cmake-developers] [PATCH] Fix CMAKE_Fortran_PLATFORM_ID on mingw-w64

2016-04-04 Thread Melven.Roehrig-Zoellner
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 ->

[cmake-developers] [PATCH] Fix CMAKE_Fortran_PLATFORM_ID on mingw-w64

2016-04-03 Thread Melven.Roehrig-Zoellner
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

[cmake-developers] [PATCH v2] language detection in FindBLAS and FindLAPACK (#0016039)

2016-04-03 Thread Melven.Roehrig-Zoellner
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 |

[cmake-developers] [PATCH] language detection in FindBLAS and FindLAPACK (#0016039)

2016-04-01 Thread Melven.Roehrig-Zoellner
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