Merge topic 'FindHDF5-version-4-components'
928943f91b
FindHDF5: Fix detection of versions with more than three components
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9476
This commit is contained in:
commit
80d285c080
@ -990,7 +990,7 @@ if( NOT HDF5_FOUND )
|
||||
HDF5_VERSION_DEFINE
|
||||
REGEX "^[ \t]*#[ \t]*define[ \t]+H5_VERSION[ \t]+" )
|
||||
if( "${HDF5_VERSION_DEFINE}" MATCHES
|
||||
"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+)(-patch([0-9]+))?\"" )
|
||||
"H5_VERSION[ \t]+\"([0-9\\.]+)(-patch([0-9]+))?\"" )
|
||||
set( HDF5_VERSION "${CMAKE_MATCH_1}" )
|
||||
if( CMAKE_MATCH_3 )
|
||||
set( HDF5_VERSION ${HDF5_VERSION}.${CMAKE_MATCH_3})
|
||||
|
Loading…
Reference in New Issue
Block a user