Check zlib can actually be linked
authorRoland Schulz <roland@utk.edu>
Thu, 27 Feb 2014 05:53:18 +0000 (00:53 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 5 Mar 2014 06:18:09 +0000 (07:18 +0100)
commit7fca425b52f21ec4afd1aa230db4480a05edad32
tree497e397ebb77495fdfba843dafb5848c8afb46ce
parent2bb3a3cf0ba5b63a2fb0f74a4b7b165e3603aba1
Check zlib can actually be linked

Only use zlib compression in tng if zlib can really be linked.
This is equivalent to ee26e1264 for libxml2.

It is slightly simpler than the approach in gmxTestLibXml2
and CheckLibraryExists could be used there too.
This does not detect potential linking errors with shared
libraries similar to those solved in #740 for FFTW.

Fixes #1435

Change-Id: I5009e50b6caf810a12e71ecd83bde2edb21a2b32
CMakeLists.txt
cmake/gmxTestZLib.cmake [new file with mode: 0644]