Fix and clean up handling of some linking
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 6 Dec 2016 19:19:54 +0000 (21:19 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Thu, 8 Dec 2016 19:51:51 +0000 (20:51 +0100)
commitf09fd9ccffa892bb18f2be5c4b0df5a453c40573
treead9d0d75b874e76957bf908d2fce0601dfa3c425
parentd3d48a8b9d6a0f2994706b0eee2578914a4ebfde
Fix and clean up handling of some linking

Split GMX_EXTRA_LIBRARIES to several lists, depending on the intended
use of those libraries.  Some of these also need to be linked by code
other than libgromacs, either because they are required by the public
headers (mostly -lm), or because also code outside libgromacs directly
references those libraries (e.g., MPI).

Should fix #2087.

Change-Id: Ie0e211b8f77a932ccd63017ee0743b78361624c4
CMakeLists.txt
cmake/gmxManageMPI.cmake
src/gromacs/CMakeLists.txt
src/programs/CMakeLists.txt
src/testutils/CMakeLists.txt
src/testutils/TestMacros.cmake