gfortran proc_proc.c build flags fix in source/cluster/wham/src-M
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Thu, 24 May 2012 20:25:15 +0000 (22:25 +0200)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Thu, 24 May 2012 20:25:15 +0000 (22:25 +0200)
source/cluster/wham/src-M/CMakeLists.txt

index 5107cb6..3926afb 100644 (file)
@@ -2,7 +2,7 @@
 # CMake project file for cluster analysis from WHAM for oligomeric proteins  
 # 
 
-enable_language (Fortran)
+enable_language (Fortran C)
 
 #================================
 # Set source file lists
@@ -55,7 +55,6 @@ set(UNRES_CLUSTER_WHAM_M_PP_SRC
        timing.F
        track.F
        work_partition.F
-       proc_proc.c
 ) 
 
 
@@ -109,6 +108,7 @@ endif(UNRES_WITH_MPI)
 #=========================================
 set_property(SOURCE ${UNRES_CLUSTER_WHAM_M_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )  
 
+set_property(SOURCE proc_proc.c PROPERTY COMPILE_DEFINITIONS "LINUX -DPGI" )
 
 #========================================
 #  Setting binary name
@@ -134,7 +134,7 @@ set(UNRES_CLUSTER_WHAM_M_BIN "unres_clustMD.exe")
 #=========================================
 # Set full unres CLUSTER sources
 #=========================================
-set(UNRES_CLUSTER_WHAM_M_SRCS ${UNRES_CLUSTER_WHAM_M_SRC0} ${CMAKE_CURRENT_SOURCE_DIR}/proc_proc.c)
+set(UNRES_CLUSTER_WHAM_M_SRCS ${UNRES_CLUSTER_WHAM_M_SRC0} proc_proc.c)
 
 #=========================================
 # Build the binary