diff options
Diffstat (limited to 'setupGNU.cmake.patch')
-rw-r--r-- | setupGNU.cmake.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setupGNU.cmake.patch b/setupGNU.cmake.patch new file mode 100644 index 000000000000..7715673e249d --- /dev/null +++ b/setupGNU.cmake.patch @@ -0,0 +1,11 @@ +--- cmake/compilers/setupGNU.cmake 2013-10-14 19:19:25.000000000 +0200 ++++ cmake/compilers/setupGNU.cmake.new 2016-05-17 20:26:30.998737834 +0200 +@@ -9,7 +9,7 @@ + # General: + set(CMAKE_Fortran_FLAGS " -fno-range-check -fno-f2c -cpp ") # remove -g -O2 from main list + execute_process(COMMAND ${CMAKE_Fortran_COMPILER} --version OUTPUT_VARIABLE CMAKE_Fortran_COMPILER_VERSION) +- string(REGEX MATCH "[3-5].[0-9].[0-9]" CMAKE_Fortran_COMPILER_VERSION ${CMAKE_Fortran_COMPILER_VERSION}) ++ string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" CMAKE_Fortran_COMPILER_VERSION ${CMAKE_Fortran_COMPILER_VERSION}) + if(${CMAKE_Fortran_COMPILER_VERSION} VERSION_GREATER 4.3.9) + add_definitions(-D_GFORTRAN) + endif() |