mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 14:57:52 +08:00
57ef47d00c
* [hdf5] Update to 1.12.2 * Update hdf5.json * add new tool to list * Update hdf5.json * revert hdf5 subdir in share + special tool * Update hdf5.json * add license (null -> custom license) * formatting * Update hdf5.json * tool is optional * Update hdf5.json * fix guard * Update hdf5.json * attempt to make hdf5perf tool dependent on feature * Update hdf5.json * fix hdf5.json * Update hdf5.json * remove parallel patch per comment see https://github.com/HDFGroup/hdf5/pull/860 * Update hdf5.json * fix MATCHES vs IN_LIST * Update hdf5.json
32 lines
1.6 KiB
Diff
32 lines
1.6 KiB
Diff
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
|
|
index 4d02c9c..8c10d2d 100644
|
|
--- a/config/cmake/hdf5-config.cmake.in
|
|
+++ b/config/cmake/hdf5-config.cmake.in
|
|
@@ -55,7 +55,10 @@ set (${HDF5_PACKAGE_NAME}_PARALLEL_FILTERED_WRITES "@PARALLEL_FILTERED_WRITES@")
|
|
#-----------------------------------------------------------------------------
|
|
# 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)
|
|
@@ -111,11 +114,11 @@ set (${HDF5_PACKAGE_NAME}_VERSION_MINOR @HDF5_VERSION_MINOR@)
|
|
# project which has already built hdf5 as a subproject
|
|
#-----------------------------------------------------------------------------
|
|
if (NOT TARGET "@HDF5_PACKAGE@")
|
|
- if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
|
|
- include (@PACKAGE_SHARE_INSTALL_DIR@/@ZLIB_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
|
+ 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)
|
|
- include (@PACKAGE_SHARE_INSTALL_DIR@/@SZIP_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
|
+ if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT)
|
|
+ find_dependency(szip)
|
|
endif ()
|
|
include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake)
|
|
endif ()
|