Avoid stack overflow on Windows with CMake > 2.8.10.2
authorStefan Fleischmann <sfle@kth.se>
Fri, 8 Aug 2014 15:14:17 +0000 (17:14 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 11 Aug 2014 02:21:46 +0000 (04:21 +0200)
commit909f8293c8fbbd416d16b793b61322ab0344664f
tree10113d039b1fab1b34a85d6a2e445aeb37b32b06
parent27189bbaad21147893b239b2457843f515e69d77
Avoid stack overflow on Windows with CMake > 2.8.10.2

CMake used to add "/STACK:10000000" to the default linker flags. That
was removed in version 2.8.11-rc1. The default value used by MSVC is
apparently too small because mdrun crashes with a stack overflow when
built on Windows with MSVC or ICC and CMake newer than 2.8.10.2.

The issue is already fixed in GROMACS 5.0 and master by I1e9858ae3. This
is a backport for release-4-6 of that commit.

Change-Id: Ib9238e513da8e86049d9e56c82262055d3c8b349
src/gmxlib/gmxfio.c