64-bit fix for unres/CSA and unres/CSA_DiL code
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Thu, 16 Oct 2014 23:51:51 +0000 (01:51 +0200)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Thu, 16 Oct 2014 23:51:51 +0000 (01:51 +0200)
source/unres/src_CSA/CMakeLists.txt
source/unres/src_CSA_DiL/CMakeLists.txt

index 89cb6a1..e4b2f53 100644 (file)
@@ -177,6 +177,11 @@ endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 #=========================================
 set(CPPFLAGS "${CPPFLAGS} -DMP -DMPI") 
 
+# add 64-bit specific preprocessor flags
+if (architektura STREQUAL "64")
+  set(CPPFLAGS "${CPPFLAGS} -DAMD64")
+endif (architektura STREQUAL "64")
+
 # Apply preprocesor flags to *.F files
 set_property(SOURCE ${UNRES_CSA_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )  
 
index 04fb4bb..7d2e805 100644 (file)
@@ -177,6 +177,12 @@ endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 #=========================================
 set(CPPFLAGS "${CPPFLAGS} -DMP -DMPI") 
 
+# add 64-bit specific preprocessor flags
+if (architektura STREQUAL "64")
+  set(CPPFLAGS "${CPPFLAGS} -DAMD64")
+endif (architektura STREQUAL "64")
+  
+
 # Apply preprocesor flags to *.F files
 set_property(SOURCE ${UNRES_CSA_DiL_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )