Update libxml2 CMake detection
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 20 Jan 2014 18:57:19 +0000 (19:57 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 22 Jan 2014 15:36:04 +0000 (16:36 +0100)
commitee26e1264f34e1561c9d4feb6df0b49658e2c7ef
tree62b37fecb6b3df80355f534b353b6c73f8bfe46e
parentb824c128e0f45634988badd9d9c222b8177e09f4
Update libxml2 CMake detection

find_package doesn't check that the library found can be linked.
Particularly when cross-compiling (observed on Power7 front end to
BlueGene/Q), this can be a problem. We need libxml2 to be reliably
detected in order to know whether we should attempt to build the test
binaries.

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