summaryrefslogtreecommitdiffstats
path: root/config/cmake/hdf5-config.cmake.install.in
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-05-18 17:50:32 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-05-18 17:50:32 (GMT)
commit089e81e86a2d0558b0b3aa36003383fe8d80d2bd (patch)
tree65a09fa717e47f0c737b426dde003319cfe4b621 /config/cmake/hdf5-config.cmake.install.in
parent976eb5e523ff339370e1387ef0490e4be1ac879f (diff)
downloadhdf5-089e81e86a2d0558b0b3aa36003383fe8d80d2bd.zip
hdf5-089e81e86a2d0558b0b3aa36003383fe8d80d2bd.tar.gz
hdf5-089e81e86a2d0558b0b3aa36003383fe8d80d2bd.tar.bz2
[svn-r20862] Adjust CPack configuration location by removing version extension in folder name. Add install configuration commands if ext libs are packaged with project.
Diffstat (limited to 'config/cmake/hdf5-config.cmake.install.in')
-rw-r--r--config/cmake/hdf5-config.cmake.install.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/cmake/hdf5-config.cmake.install.in b/config/cmake/hdf5-config.cmake.install.in
index eed1a2a..0e653ea 100644
--- a/config/cmake/hdf5-config.cmake.install.in
+++ b/config/cmake/hdf5-config.cmake.install.in
@@ -18,6 +18,7 @@ SET (HDF5_ENABLE_Z_LIB_SUPPORT @HDF5_ENABLE_Z_LIB_SUPPORT@)
SET (HDF5_ENABLE_SZIP_SUPPORT @HDF5_ENABLE_SZIP_SUPPORT@)
SET (HDF5_ENABLE_SZIP_ENCODING @HDF5_ENABLE_SZIP_ENCODING@)
SET (BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
+SET (HDF5_PACKAGE_EXTLIBS @HDF5_PACKAGE_EXTLIBS@)
#-----------------------------------------------------------------------------
# Directories
@@ -57,6 +58,12 @@ SET (HDF5_VERSION_MINOR @HDF5_VERSION_MINOR@)
# project which has already built hdf5 as a subproject
#-----------------------------------------------------------------------------
IF (NOT TARGET "hdf5")
+ IF (HDF5_ENABLE_Z_LIB_SUPPORT AND HDF5_PACKAGE_EXTLIBS)
+ INCLUDE (${SELF_DIR}/../ZLIB/ZLIB-targets.cmake)
+ ENDIF (HDF5_ENABLE_Z_LIB_SUPPORT AND HDF5_PACKAGE_EXTLIBS)
+ IF (HDF5_ENABLE_SZIP_SUPPORT AND HDF5_PACKAGE_EXTLIBS)
+ INCLUDE (${SELF_DIR}/../SZIP/SZIP-targets.cmake)
+ ENDIF (HDF5_ENABLE_SZIP_SUPPORT AND HDF5_PACKAGE_EXTLIBS)
INCLUDE (${SELF_DIR}/hdf5-targets.cmake)
ENDIF (NOT TARGET "hdf5")