summaryrefslogtreecommitdiff
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-21 13:12:16 -0400
committerBrad King <brad.king@kitware.com>2017-03-21 13:12:16 -0400
commit2c55c143c8648869ef4042bc980b55f76a51d3a9 (patch)
treebc73dc27a5432056fc45d93351121df4d2c2bddc /Modules/FindHDF5.cmake
parent63c0ba5ff136bcca413567e2073d4a8c7702f416 (diff)
parent9753d4c27e61f1ed90061c9a65a7a30a16062405 (diff)
downloadcmake-2c55c143c8648869ef4042bc980b55f76a51d3a9.tar.gz
Merge branch 'backport-FindHDF5-optional-no-config' into FindHDF5-optional-no-config
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 65af021c54..1e2ea69a75 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -101,6 +101,9 @@
#
# ``HDF5_FIND_DEBUG``
# Set to a true value to get some extra debugging output.
+#
+# ``HDF5_NO_FIND_PACKAGE_CONFIG_FILE``
+# Set to a true value to skip trying to find ``hdf5-config.cmake``.
# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
@@ -401,7 +404,7 @@ else()
endif()
# Try to find HDF5 using an installed hdf5-config.cmake
-if(NOT HDF5_FOUND)
+if(NOT HDF5_FOUND AND NOT HDF5_NO_FIND_PACKAGE_CONFIG_FILE)
find_package(HDF5 QUIET NO_MODULE
HINTS ${HDF5_ROOT}
${_HDF5_SEARCH_OPTS}