Commit 62880c3b authored by gsell's avatar gsell
Browse files

master CMakeList.txt: check availibility of Fortran compiler, abort of not found and AMR is enabled

parent a87f24c6
......@@ -57,6 +57,22 @@ else ()
message (STATUS "Unknown C++ compiler. Please use the GNU or Intel compiler, IF you are having problems.")
endif ()
enable_language (Fortran OPTIONAL)
message (STATUS "Fortran compilers: ${CMAKE_Fortran_COMPILER_NAMES}")
if (CMAKE_Fortran_COMPILER)
message (STATUS "The Fortran compiler identification is: ${CMAKE_Fortran_COMPILER_ID}")
message (STATUS "The Fortran compiler version is: ${CMAKE_Fortran_COMPILER_VERSION}")
message (STATUS "The Fortran compiler is: ${CMAKE_Fortran_COMPILER}")
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
set (Fortran_LIBS "-lgfortran")
endif ()
else ()
message (STATUS "No Fortran compiler found (optional)")
if (ENABLE_AMR)
message (ERROR "AMR is enabled but no Fortran compiler found!")
endif ()
endif()
FIND_PACKAGE (H5Hut REQUIRED)
FIND_PACKAGE (HDF5 REQUIRED)
FIND_PACKAGE (GSL REQUIRED)
......
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