Modernize FindHwloc.cmake
commit43512398c0fcdb1065352a6d72efba31fb38230a
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 3 Jul 2019 10:53:16 +0000 (3 12:53 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 5 Jul 2019 07:15:07 +0000 (5 09:15 +0200)
treeb18543d72f54951185f7748f34e580da8be7ed60
parent2fcc13067e87478952fea0963c546cde1bf2412d
Modernize FindHwloc.cmake

Users (and Jenkins) need the ability to direct finding a particular
hwloc version, e.g. from a module. This is particularly important now
that two API versions exist and are supported in GROMACS. Imported the
find module from Inria, which adds several useful capababilities,
including the ability to specify where to look for a specific version
of this library.

Removed the pkgconfig support from the imported FindHwloc.cmake
because it seems the hwloc.pc file from libhwloc does not lead to the
CMake idiomatic behaviour of HWLOC_LIBRARIES being the full path to
the library.

Refs #2539, #3011

Change-Id: I6837144a556f1c61a0f13406fb31fe1d527b65f4
CMakeLists.txt
cmake/FindHwloc.cmake