GMX_USE_PLUGINS=ON is incompatible with GMX_PREFER_STATIC_LIBS=ON -- cmake should fail but does not - Redmine #2082
Archive from user: Chris Neale
It appears that when compiling gromacs 5.1.2 with the cmake option -DGMX_USE_PLUGINS=ON that also adding the cmake option -DGMX_PREFER_STATIC_LIBS=ON causes the plugins to be silently abandoned. Suggest to force failure with a message that GMX_USE_PLUGINS=ON is incompatible with GMX_PREFER_STATIC_LIBS=ON
More information is here:
https://mailman-1.sys.kth.se/pipermail/gromacs.org\_gmx-users/2016-November/109605.html
(from redmine: issue id 2082, created on 2016-11-23 by gmxdefault, closed on 2017-01-20)
- Relations:
- relates #598 (closed)
- Changesets:
- Revision f6eacdd8 by Mark Abraham on 2016-12-20T20:28:09Z:
Improve build system for plugin support
The mdrun-only and prefer-static-libs builds set the default for
BUILD_SHARED_LIBS to off, which silently disabled plugin support.
Converted GMX_LOAD_PLUGINS to tri-state ON/OFF/AUTO so that if the
preconditions for support are not met we can have suitable behaviour
in each case. We now write to the status line only when something
relevant changes, and issue a usefully descriptive fatal error only
when the user's request cannot be satisfied.
Renamed and reimplemented VMD_QUIETLY as EMIT_STATUS_MESSAGES.
Moved the reorganized code to its own source file.
Refs #2082
Change-Id: I0ad2d8423abbc8d8cb409e74325f2b00831644ea