From a0fbb014fe8510d10951719c5282d0a549a52923 Mon Sep 17 00:00:00 2001 From: Cezary Czaplewski Date: Sat, 5 Sep 2020 01:20:23 +0200 Subject: [PATCH] cmake gfortran correction --- source/unres/src_MD-M/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #========================================= -- 1.7.9.5