#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
+# Copyright (c) 2012,2013,2014,2015, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
if (WIN32 AND NOT CYGWIN AND NOT BUILD_SHARED_LIBS)
set(GMX_PREFER_STATIC_LIBS_DEFAULT ON)
endif()
+if (NOT GMX_BUILD_SHARED_EXE)
+ set(GMX_PREFER_STATIC_LIBS_DEFAULT ON)
+ set(SHARED_LIBS_DEFAULT OFF)
+endif()
# Declare the user-visible options
option(BUILD_SHARED_LIBS "Enable shared libraries (can be problematic e.g. with MPI, or on some HPC systems)" ${SHARED_LIBS_DEFAULT})