enable compiler preprocesor flags for non-standard files (COMMON.*) in gfortran for...
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Mon, 18 Jun 2012 20:13:38 +0000 (22:13 +0200)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Mon, 18 Jun 2012 20:13:38 +0000 (22:13 +0200)
source/unres/src_CSA/CMakeLists.txt

index 3fd2b9b..b3747b2 100644 (file)
@@ -110,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 "-c -cpp -I. " ) 
+  set(FFLAGS1 "-c -cpp -g -I. " ) 
+  set(FFLAGS2 "-c -cpp -I. ")
   #set(FFLAGS3 "-c -w -O3 -ipo -ipo_obj -opt_report" )
-  set(FFLAGS3 "-c -I. " )
+  set(FFLAGS3 "-c -cpp -I. " )
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")