compinfo.c warning supresion
[unres.git] / source / cluster / wham / src-M / CMakeLists.txt
index 5107cb6..cd8871c 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
 ) 
 
 
@@ -63,9 +62,9 @@ set(UNRES_CLUSTER_WHAM_M_PP_SRC
 # Set comipiler flags for different sourcefiles  
 #================================================
 if (Fortran_COMPILER_NAME STREQUAL "ifort")
-  set(FFLAGS0 "-ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) 
+  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 "-I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) 
 endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 
 # Add MPI compiler flags
@@ -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