mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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:
@@ -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}" )
|
||||
|
||||
Reference in New Issue
Block a user