added -cpp flag to force preprocesing for all files in gfortran
[unres.git] / source / unres / src_CSA / CMakeLists.txt
index 85e8ca5..c9be577 100644 (file)
@@ -1,5 +1,5 @@
 #
-# CMake project file for UNRES with MD for single chains
+# CMake project file for UNRES CSA version
 # 
 
 enable_language (Fortran)
@@ -44,7 +44,7 @@ set(UNRES_CSA_SRC0
        minim_mult.F
        misc.f
        MP.F
-       newconf.f
+       newconf.F
        parmread.F
        pinorm.f
        printmat.f
@@ -85,6 +85,7 @@ set(UNRES_CSA_PP_SRC
        minim_jlee.F
        minim_mult.F
        MP.F
+       newconf.F
        parmread.F
        prng_32.F
        readpdb.F
@@ -109,11 +110,11 @@ 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 "-c -I. " ) 
-  set(FFLAGS1 "-c -g -I. " ) 
-  set(FFLAGS2 "-c -I. ")
+  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 "-c -I. " )
+  set(FFLAGS3 "-cpp -c -I. " )
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")