File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ if(h5fortran_IS_TOP_LEVEL AND (hdf5_parallel OR HDF5_HAVE_PARALLEL))
49
49
target_link_libraries (HDF5::HDF5 INTERFACE MPI::MPI_Fortran)
50
50
endif ()
51
51
52
- # HDF5 bug #3663 for HDF5 1.14.2..4 , ...?
52
+ # HDF5 bug #3663 for HDF5 1.14.2..5 , ...?
53
53
# https://github.com/HDFGroup/hdf5/issues/3663
54
54
if (WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "^Intel" )
55
- if (HDF5_VERSION MATCHES "1.14.[2-4 ]" )
56
- message (VERBOSE "HDF5: applying workaround for HDF5 bug #3663 with Intel oneAPI on Windows" )
55
+ if (HDF5_VERSION MATCHES "1.14.[2-5 ]" )
56
+ message (STATUS "HDF5: applying workaround for HDF5 bug #3663 with Intel oneAPI on Windows" )
57
57
target_link_libraries (HDF5::HDF5 INTERFACE shlwapi)
58
58
endif ()
59
59
endif ()
Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ endif()
74
74
75
75
# Get HDF5 version from underscore-separated version in URL
76
76
77
- string (REGEX MATCH "[0-9]+_[0-9]+_[0-9]+" HDF5_VERSION "${hdf5_url} " )
78
- string (REPLACE "_" "." HDF5_VERSION "${HDF5_VERSION} " )
77
+ if (hdf5_url MATCHES "hdf5_([0-9]+\. [0-9]+\. [0-9]+)\. " )
78
+ set (HDF5_VERSION "${CMAKE_MATCH_1} " )
79
+ endif ()
79
80
80
- message (STATUS "Building HDF5 ${HDF5_VERSION} " )
81
+ message (STATUS "Building HDF5 version ${HDF5_VERSION} " )
81
82
82
83
ExternalProject_Add(HDF5
83
84
URL ${hdf5_url}
You can’t perform that action at this time.
0 commit comments