2020-06-24 03:58:50 +08:00
|
|
|
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
|
2023-02-04 05:59:09 +08:00
|
|
|
index 1a3fb7bbf2..79081ce040 100644
|
2021-10-27 13:38:05 +08:00
|
|
|
--- a/config/cmake/hdf5-config.cmake.in
|
2020-06-24 03:58:50 +08:00
|
|
|
+++ b/config/cmake/hdf5-config.cmake.in
|
2023-02-04 05:59:09 +08:00
|
|
|
@@ -56,7 +56,10 @@ set (${HDF5_PACKAGE_NAME}_PARALLEL_FILTERED_WRITES "@PARALLEL_FILTERED_WRITES@")
|
2020-06-24 03:58:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Dependencies
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
+include(CMakeFindDependencyMacro)
|
|
|
|
+
|
|
|
|
if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL)
|
|
|
|
+ find_dependency(MPI)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_C_INCLUDE_PATH "@MPI_C_INCLUDE_DIRS@")
|
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_C_LIBRARIES "@MPI_C_LIBRARIES@")
|
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN)
|
2023-02-04 05:59:09 +08:00
|
|
|
@@ -114,11 +117,11 @@ set (${HDF5_PACKAGE_NAME}_VERSION_MINOR @HDF5_VERSION_MINOR@)
|
2020-06-24 03:58:50 +08:00
|
|
|
# project which has already built hdf5 as a subproject
|
|
|
|
#-----------------------------------------------------------------------------
|
2023-02-04 05:59:09 +08:00
|
|
|
if (NOT TARGET "@HDF5_PACKAGE@")
|
2020-06-24 03:58:50 +08:00
|
|
|
- if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
|
2022-06-07 03:37:54 +08:00
|
|
|
- include (@PACKAGE_SHARE_INSTALL_DIR@/@ZLIB_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
2020-06-24 03:58:50 +08:00
|
|
|
+ if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT)
|
|
|
|
+ find_dependency(ZLIB)
|
|
|
|
endif ()
|
|
|
|
- if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
|
2022-06-07 03:37:54 +08:00
|
|
|
- include (@PACKAGE_SHARE_INSTALL_DIR@/@SZIP_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
2020-06-24 03:58:50 +08:00
|
|
|
+ if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT)
|
|
|
|
+ find_dependency(szip)
|
2023-02-04 05:59:09 +08:00
|
|
|
endif ()
|
2022-06-07 03:37:54 +08:00
|
|
|
include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake)
|
2020-06-24 03:58:50 +08:00
|
|
|
endif ()
|