diff --git a/CMakeVOL.cmake b/CMakeVOL.cmake index d8b8ff0acb0..a6bd3b4adca 100644 --- a/CMakeVOL.cmake +++ b/CMakeVOL.cmake @@ -77,6 +77,7 @@ if (HDF5_VOL_ALLOW_EXTERNAL MATCHES "GIT" OR HDF5_VOL_ALLOW_EXTERNAL MATCHES "LO set (HDF5_LIBRARIES "${HDF5_LIBSH_TARGET};${LINK_LIBS};${LINK_COMP_LIBS};$<$:MPI::MPI_C>") set (HDF5_INCLUDE_DIRS "${HDF5_SRC_INCLUDE_DIRS};${HDF5_SRC_BINARY_DIR};$<$:${MPI_C_INCLUDE_DIRS}>") set (HDF5_IS_PARALLEL ${H5_HAVE_PARALLEL}) + set (HDF5_VERSION ${HDF5_PACKAGE_VERSION}) set (HDF5_C_LIBRARIES "${HDF5_LIBRARIES}")