force legacy standard for gfortran
[unres.git] / source / cluster / wham / src / CMakeLists.txt
index 120d163..17a7ef6 100644 (file)
@@ -16,6 +16,7 @@ set(UNRES_CLUSTER_WHAM_SRC0
        energy_p_new.F
        fitsq.f
        geomout.F
+       gnmr1.f
        hc.f
        icant.f
        initialize_p.F
@@ -61,7 +62,7 @@ set(UNRES_CLUSTER_WHAM_PP_SRC
 if (Fortran_COMPILER_NAME STREQUAL "ifort")
   set(FFLAGS0 "-ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) 
 elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
-  set(FFLAGS0 "-I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) 
+  set(FFLAGS0 "-std=legacy -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) 
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 
 # Add MPI compiler flags