From: Cezary Czaplewski Date: Fri, 4 Sep 2020 23:20:23 +0000 (+0200) Subject: cmake gfortran correction X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=commitdiff_plain;h=a0fbb014fe8510d10951719c5282d0a549a52923 cmake gfortran correction --- 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 #=========================================