From a1f4ddc1708702bd0cd724223183ee9f094933cc Mon Sep 17 00:00:00 2001 From: Dawid Jagiela Date: Fri, 25 May 2012 14:16:23 +0200 Subject: [PATCH] gfortran fix for cluster/wham/src build --- source/cluster/wham/src/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/cluster/wham/src/CMakeLists.txt b/source/cluster/wham/src/CMakeLists.txt index 3adb775..120d163 100644 --- a/source/cluster/wham/src/CMakeLists.txt +++ b/source/cluster/wham/src/CMakeLists.txt @@ -52,7 +52,6 @@ set(UNRES_CLUSTER_WHAM_PP_SRC timing.F track.F work_partition.F - proc_proc.c ) @@ -128,10 +127,16 @@ set(UNRES_CLUSTER_WHAM_BIN "unres_clustMD.exe") # DEPENDS compinfo-wham-m ) #set_property(SOURCE ${UNRES_CINFO_DIR}/cinfo.f PROPERTY COMPILE_FLAGS ${FFLAGS0} ) +set_property(SOURCE proc_proc.c PROPERTY COMPILE_DEFINITIONS "LINUX -DPGI" ) + + + #========================================= # Set full unres CLUSTER sources #========================================= -set(UNRES_CLUSTER_WHAM_SRCS ${UNRES_CLUSTER_WHAM_SRC0} ${CMAKE_CURRENT_SOURCE_DIR}/proc_proc.c) +set(UNRES_CLUSTER_WHAM_SRCS ${UNRES_CLUSTER_WHAM_SRC0} proc_proc.c) + + #========================================= # Build the binary -- 1.7.9.5