ENH: Patch from Maik to add per-configuration default flags to GCC and Intel Fortran compilers on Linux.
This commit is contained in:
parent
5a670176b9
commit
9f54e1f043
|
@ -1 +1,16 @@
|
|||
SET(CMAKE_Fortran_MODDIR_FLAG -J)
|
||||
SET (CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") # -pic
|
||||
SET (CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET (CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET (CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
SET (CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
SET (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
|
||||
IF(NOT APPLE)
|
||||
SET (CMAKE_INCLUDE_SYSTEM_FLAG_Fortran "-isystem ")
|
||||
ENDIF(NOT APPLE)
|
||||
|
||||
# These will require updates to CMake C++ code to support
|
||||
# preprocessing rules for Fortran.
|
||||
#SET (CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
#SET (CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
|
|
|
@ -6,3 +6,9 @@ SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-rpath,")
|
|||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,")
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
||||
|
||||
SET (CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET (CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET (CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
SET (CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
SET (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
|
|
Loading…
Reference in New Issue