Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 56b802fed4
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (18 sloc) 1.087 kb
# This overrides the default CMake Debug and Release compiler options.
# The user can still specify different options by setting the
# CMAKE_Fortran_FLAGS_[RELEASE,DEBUG] variables (on the command line or in the
# CMakeList.txt). This files serves as better CMake defaults and should only be
# modified if the default values are to be changed. Project specific compiler
# flags should be set in the CMakeList.txt by setting the CMAKE_Fortran_FLAGS_*
# variables.
# gfortran
set(common "-std=f2008 -Wall -Wextra -Wimplicit-interface -Werror -fPIC -fmax-errors=1")
set(CMAKE_Fortran_FLAGS_RELEASE_INIT "${common} -O3 -march=native -ffast-math -funroll-loops")
set(CMAKE_Fortran_FLAGS_DEBUG_INIT "${common} -g -fbounds-check -fcheck-array-temporaries -fbacktrace")
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
# ifort
set(common "-std2003 -warn all")
set(CMAKE_Fortran_FLAGS_RELEASE_INIT "${common} -xHOST -O3 -no-prec-div -static")
set(CMAKE_Fortran_FLAGS_DEBUG_INIT "${common} -check all")
endif ()
Jump to Line
Something went wrong with that request. Please try again.