diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-01-25 22:58:36 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-01-25 22:58:36 (GMT) |
commit | 79f2f733796429bd5b5bf691b2f469fe9318c4b6 (patch) | |
tree | e605617011ff285b26cca7368ce371b577c2a528 /config/cmake | |
parent | e07d198c4751483762315818a8a57e2ee4c21d83 (diff) | |
download | hdf5-79f2f733796429bd5b5bf691b2f469fe9318c4b6.zip hdf5-79f2f733796429bd5b5bf691b2f469fe9318c4b6.tar.gz hdf5-79f2f733796429bd5b5bf691b2f469fe9318c4b6.tar.bz2 |
Fix ext lib references
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/hdf5-config.cmake.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in index 421f693..574f541 100644 --- a/config/cmake/hdf5-config.cmake.in +++ b/config/cmake/hdf5-config.cmake.in @@ -105,7 +105,13 @@ set (HDF5_VERSION_MINOR @HDF5_VERSION_MINOR@) # project which has already built hdf5 as a subproject #----------------------------------------------------------------------------- if (NOT TARGET "@HDF5_PACKAGE@") - include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake) + if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS AND NOT TARGET "zlib") + include (@PACKAGE_SHARE_INSTALL_DIR@/@ZLIB_PACKAGE_NAME@/@ZLIB_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake) + endif () + if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS AND NOT TARGET "szip") + include (@PACKAGE_SHARE_INSTALL_DIR@/@SZIP_PACKAGE_NAME@/@SZIP_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake) + endif () + include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake) endif () # Handle default component(static) : |