X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD-M%2FCMakeLists.txt;h=8307560acc5aa8141abec95b4141aa52096edbd2;hb=bec16fe5c6535ba19a1ab6916d5291eca5b485e2;hp=9b77dab0933709ca212e2405b44220751e55db4b;hpb=872cf2b5e368d0770780b0b2614c75f8e50f5608;p=unres.git diff --git a/source/unres/src_MD-M/CMakeLists.txt b/source/unres/src_MD-M/CMakeLists.txt index 9b77dab..8307560 100644 --- a/source/unres/src_MD-M/CMakeLists.txt +++ b/source/unres/src_MD-M/CMakeLists.txt @@ -7,7 +7,7 @@ enable_language (Fortran) #================================ # build the xdrf library #================================ -add_subdirectory(xdrf) +#add_subdirectory(xdrf) #================================ # Set source file lists @@ -71,7 +71,6 @@ set(UNRES_MDM_SRC0 permut.F pinorm.f printmat.f - prng_32.F q_measure.F ran.f randgens.f @@ -96,6 +95,13 @@ set(UNRES_MDM_SRC0 unres.F ) +if (Fortran_COMPILER_NAME STREQUAL "ifort") + set(UNRES_MDM_SRC0 ${UNRES_MDM_SRC0} prng.f ) +else() + set(UNRES_MDM_SRC0 ${UNRES_MDM_SRC0} prng_32.F ) +endif (Fortran_COMPILER_NAME STREQUAL "ifort") + + set(UNRES_MDM_SRC3 energy_p_new_barrier.F energy_p_new-sep_barrier.F gradient_p.F ) set(UNRES_MDM_PP_SRC @@ -133,7 +139,6 @@ set(UNRES_MDM_PP_SRC newconf.f parmread.F permut.F - prng_32.F q_measure1.F q_measure3.F q_measure.F @@ -152,10 +157,16 @@ set(UNRES_MDM_PP_SRC thread.F timing.F together.F - unres.F + unres.F + proc_proc.c ) +if(NOT Fortran_COMPILER_NAME STREQUAL "ifort") + set(UNRES_MDM_PP_SRC "${UNRES_MDM_PP_SRC} prng_32.F") +endif(NOT Fortran_COMPILER_NAME STREQUAL "ifort") + + #================================================ # Set comipiler flags for different sourcefiles #================================================ @@ -246,7 +257,7 @@ endif (architektura STREQUAL "64") set_property(SOURCE ${UNRES_MDM_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} ) # Apply preprocesor flags to proc_proc.c -set_property(SOURCE proc_proc.c APPEND PROPERTY COMPILE_DEFINITIONS "SGI" ) +set_property(SOURCE proc_proc.c PROPERTY COMPILE_DEFINITIONS "SGI" ) #======================================== @@ -299,7 +310,7 @@ if(UNRES_WITH_MPI) endif(UNRES_WITH_MPI) # link libxdrf.a #message("UNRES_XDRFLIB=${UNRES_XDRFLIB}") -target_link_libraries( UNRES_BIN-MD-M xdrf-MD-M ) +target_link_libraries( UNRES_BIN-MD-M xdrf ) #========================================= # TESTS