gfortran legacy standard enforcement
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Wed, 7 Nov 2012 13:36:53 +0000 (14:36 +0100)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Wed, 7 Nov 2012 13:36:53 +0000 (14:36 +0100)
source/unres/src_MD/CMakeLists.txt

index 7486050..b041904 100644 (file)
@@ -151,11 +151,11 @@ if (Fortran_COMPILER_NAME STREQUAL "ifort")
   #set(FFLAGS3 "-c -w -O3 -ipo -ipo_obj -opt_report" )
   set(FFLAGS3 "-w -ipo " )
 elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
-  set(FFLAGS0 "-I. " ) 
-  set(FFLAGS1 "-g -I. " ) 
-  set(FFLAGS2 "-I. ")
+  set(FFLAGS0 "-std=legacy -I. " ) 
+  set(FFLAGS1 "-std=legacy -g -I. " ) 
+  set(FFLAGS2 "-std=legacy -I. ")
   #set(FFLAGS3 "-c -w -O3 -ipo -ipo_obj -opt_report" )
-  set(FFLAGS3 "-I. " )
+  set(FFLAGS3 "-std=legacy -I. " )
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")