From 3137faae6fcc87e135268c6150c003564b5b8195 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Wed, 18 Sep 2024 10:46:29 +0200 Subject: 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. --- Modules/FindHDF5.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index bd21e3d..242d36f 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -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}" ) -- cgit v0.12