diff options
author | Brad King <brad.king@kitware.com> | 2017-03-21 13:12:16 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-21 13:12:16 -0400 |
commit | 2c55c143c8648869ef4042bc980b55f76a51d3a9 (patch) | |
tree | bc73dc27a5432056fc45d93351121df4d2c2bddc /Modules/FindHDF5.cmake | |
parent | 63c0ba5ff136bcca413567e2073d4a8c7702f416 (diff) | |
parent | 9753d4c27e61f1ed90061c9a65a7a30a16062405 (diff) | |
download | cmake-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.cmake | 5 |
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} |