X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Funres%2Fsrc_MD-M%2FCMakeLists.txt;fp=source%2Funres%2Fsrc_MD-M%2FCMakeLists.txt;h=6aa6fc6f97f5b08b598061486bd011b5ac459c74;hb=04e787c1d9ff8dde198693024cac7de49d1435b1;hp=03a451585a1bb43a2e71bfecf3c0c017aa349e18;hpb=ae8d9c0b861e24dfda2917c3a7f495eed21c227d;p=unres.git diff --git a/source/unres/src_MD-M/CMakeLists.txt b/source/unres/src_MD-M/CMakeLists.txt index 03a4515..6aa6fc6 100644 --- a/source/unres/src_MD-M/CMakeLists.txt +++ b/source/unres/src_MD-M/CMakeLists.txt @@ -323,8 +323,11 @@ endif(UNRES_WITH_MPI) # link libxdrf.a #message("UNRES_XDRFLIB=${UNRES_XDRFLIB}") target_link_libraries( UNRES_BIN-MD-M xdrf ) +if (Fortran_COMPILER_NAME STREQUAL "ifort") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mcmodel=medium -shared-intel") - +else () +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mcmodel=medium ") +endif () #========================================= # Install Path #=========================================