Skip to content
Snippets Groups Projects
Commit 121a5f16 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindHDF5: clear any `HDF5_FOUND` status before starting

parent 0dd5dfdd
No related branches found
No related tags found
No related merge requests found
Pipeline #150553 passed
......@@ -125,6 +125,11 @@ The following variable can be set to guide the search for HDF5 libraries and inc
include(SelectLibraryConfigurations)
include(FindPackageHandleStandardArgs)
# We haven't found HDF5 yet. Clear its state in case it is set in the parent
# scope somewhere else. We can't rely on it because different components may
# have been requested for this call.
set(HDF5_FOUND OFF)
# List of the valid HDF5 components
set(HDF5_VALID_LANGUAGE_BINDINGS C CXX Fortran)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment