Commit 95a63fea authored by jclamber's avatar jclamber

force gfortran compiler

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@144 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 49580c96
......@@ -91,6 +91,10 @@ if(DEFINED CMAKE_Fortran_COMPILER AND CMAKE_Fortran_COMPILER MATCHES "^$")
endif(DEFINED CMAKE_Fortran_COMPILER AND CMAKE_Fortran_COMPILER MATCHES "^$")
enable_language(Fortran OPTIONAL)
message(STATUS "CMAKE_Fortran_COMPILER_WORKS = ${CMAKE_Fortran_COMPILER_WORKS}")
if (CMAKE_Fortran_COMPILER)
SET(CMAKE_Fortran_COMPILER gfortran)
MESSAGE(STATUS "Fortran compiler : " ${CMAKE_Fortran_COMPILER})
endif()
# Enable Fortran support
#ENABLE_LANGUAGE(Fortran)
......@@ -136,6 +140,7 @@ ENDFOREACH(exe_cpp ${execpp_sources})
# build Fortran executables according to the source
# compilation options
if (CMAKE_Fortran_COMPILER)
FOREACH(exe_f ${exe_sources})
get_filename_component(exe ${exe_f} NAME_WE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment