Fix and document issues with template.cpp
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 4 Jul 2014 14:05:27 +0000 (16:05 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 1 Sep 2014 19:06:38 +0000 (21:06 +0200)
commit88dc658b890c3a8516463cbd105cbc1c1a8d16f4
treef66bacfac9e185a91e9c4b84a85d7ff065397a05
parentf65f8e9499123710253e5ccbe7c3b02ec7c27287
Fix and document issues with template.cpp

Boost is a requirement for the template, so the FindGROMACS.cmake
needs machinery to deal with that. It will now find the Boost internal
to GROMACS.

pkg-config generally helps (if available and GMXRC is sourced), and
that use is now documented in the README.

Finding the GROMACS libraries and headers is also a requirement.  This
now works whether or not the user has sourced GMXRC or has pkg-config
installed. The user can over-ride this with CMAKE_PREFIX_PATH if they
want to.

The template needs to use the same compiler and compiler flags for
post-C++98 support, and this is now documented in the README. In
master branch, some of these issues are side-stepped, so take due care
when merging.

Fixes #1554

Change-Id: Id30cf5149ead4a3f719499e37776a00f08309afc
share/template/README
share/template/cmake/FindGROMACS.cmakein