add support for CFLAGS and CXXFLAGS; fixes #1

This commit is contained in:
Radovan Bast
2015-06-10 15:25:24 +02:00
parent eeaceefca5
commit a21201b1b9
17 changed files with 143 additions and 55 deletions

View File

@ -1,6 +1,6 @@
if(NOT DEFINED ENV{FCFLAGS})
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -w -assume byterecl")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -ip")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -traceback")
endif()