added missing preprocessor flags for prng_32.F
[unres.git] / source / unres / src_CSA_DiL / CMakeLists.txt
index b394f5c..d69490c 100644 (file)
@@ -52,6 +52,7 @@ set(UNRES_CSA_DiL_SRC0
        ran.f
        readpdb.F
        readrtns_csa.F
+       refsys.f
        rescode.f
        rmdd.f
        rmsd.F
@@ -109,11 +110,10 @@ if (Fortran_COMPILER_NAME STREQUAL "ifort")
   #set(FFLAGS3 "-c -w -O3 -ipo -ipo_obj -opt_report" )
   set(FFLAGS3 "-c -w -ipo " )
 elseif (Fortran_COMPILER_NAME STREQUAL "gfortran")
-  set(FFLAGS0 "-cpp -c -I. ") 
-  set(FFLAGS1 "-cpp -c -g -I. " ) 
-  set(FFLAGS2 "-cpp -c -I. ")
-  #set(FFLAGS3 "-c -w -O3 -ipo -ipo_obj -opt_report" )
-  set(FFLAGS3 "-cpp -c -I. " )
+  set(FFLAGS0 "-std=legacy -cpp -c -I. ") 
+  set(FFLAGS1 "-std=legacy -cpp -c -g -I. " ) 
+  set(FFLAGS2 "-std=legacy -cpp -c -I. ")
+  set(FFLAGS3 "-std=legacy -cpp -c -I. " )
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 
 
@@ -177,7 +177,17 @@ endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 #=========================================
 set(CPPFLAGS "${CPPFLAGS} -DMP -DMPI") 
 
+#=========================================
+# add 64-bit specific preprocessor flags
+#=========================================
+if (architektura STREQUAL "64")
+  set(CPPFLAGS "${CPPFLAGS} -DAMD64")
+endif (architektura STREQUAL "64")
+  
+
+#=========================================
 # Apply preprocesor flags to *.F files
+#=========================================
 set_property(SOURCE ${UNRES_CSA_DiL_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )