FindHDF5: Avoid mentioning empty version when not found

Previously the not-found message confusingly mentioned an empty version
number:

    -- Could NOT find HDF5: Found unsuitable version "", ...

Don't confuse FindPackageHandleStandardArgs by defining an empty
version.
This commit is contained in:
Mark Abraham
2024-09-18 10:46:29 +02:00
committed by Brad King
parent 01d8a955be
commit 3137faae6f

View File

@@ -974,7 +974,6 @@ if( NOT HDF5_FOUND )
# If the HDF5 include directory was found, open H5pubconf.h to determine if
# HDF5 was compiled with parallel IO support
set( HDF5_IS_PARALLEL FALSE )
set( HDF5_VERSION "" )
foreach( _dir IN LISTS HDF5_INCLUDE_DIRS )
foreach(_hdr "${_dir}/H5pubconf.h" "${_dir}/H5pubconf-64.h" "${_dir}/H5pubconf-32.h")
if( EXISTS "${_hdr}" )