Fix hwloc detection
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 17 Jul 2017 13:47:33 +0000 (15:47 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 17 Jul 2017 13:51:28 +0000 (15:51 +0200)
In some cases, including the release workflow build in Jenkins, this
could fail because it uses a CMake macro without including the file
where it got defined.

Change-Id: I83646e0b489c8930a5b6d7fdb2584cb760282fdb

cmake/FindHwloc.cmake

index 863ed5431c21360cb63ba6492a34d54a54ef262c..677107a7bfb2f69f382a91867fb864f06d1030f7 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2015,2016, by the GROMACS development team, led by
+# Copyright (c) 2015,2016,2017, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -121,6 +121,7 @@ if(HWLOC_INCLUDE_DIRS)
     endif()
 endif()
 
+include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(Hwloc
                                   REQUIRED_VARS HWLOC_LIBRARIES HWLOC_INCLUDE_DIRS
                                   VERSION_VAR HWLOC_VERSION)