gmxapi expects position independent code.
commit2ec0e1050de69c3fcb24a87577769d2a418fd768
authorM. Eric Irrgang <ericirrgang@gmail.com>
Tue, 9 Oct 2018 12:44:37 +0000 (9 15:44 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 10 Oct 2018 14:46:08 +0000 (10 16:46 +0200)
treead1ed0914f06cd6e7c3f0346a888993061d1a151
parenta08f077d188a54ea067b170f52137f587d88cfda
gmxapi expects position independent code.

By default, do not attempt to build gmxapi when BUILD_SHARED_LIBS=OFF.

Enforce the assumption that libgmxapi is being built as a shared
library against a shared library. The longer term solutions are

 - only build one library
 - allow that library to be built as
   - a shared object library
   - an archive library without position independent code
   - an archive library with position independent code

Change-Id: Ib9a64be765c967e374934067954982891aca0299
src/CMakeLists.txt