summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-08-31 16:04:32 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-08-31 16:04:32 (GMT)
commit4cae0acb175e6b4348c68d5ffa4b0490440c5425 (patch)
tree6767d1e461e5e6cf19ff5de0a0aec1196caaa881 /config
parent2f282ffa9ddd0115e37b465463a104c49299fa33 (diff)
downloadhdf5-4cae0acb175e6b4348c68d5ffa4b0490440c5425.zip
hdf5-4cae0acb175e6b4348c68d5ffa4b0490440c5425.tar.gz
hdf5-4cae0acb175e6b4348c68d5ffa4b0490440c5425.tar.bz2
[svn-r21340] Add check for target already exists
Diffstat (limited to 'config')
-rw-r--r--config/cmake/hdf5-config.cmake.install.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/cmake/hdf5-config.cmake.install.in b/config/cmake/hdf5-config.cmake.install.in
index 22ce5f3..610841c 100644
--- a/config/cmake/hdf5-config.cmake.install.in
+++ b/config/cmake/hdf5-config.cmake.install.in
@@ -59,12 +59,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)
+ IF (HDF5_ENABLE_Z_LIB_SUPPORT AND HDF5_PACKAGE_EXTLIBS AND NOT TARGET "zlib")
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)
+ ENDIF (HDF5_ENABLE_Z_LIB_SUPPORT AND HDF5_PACKAGE_EXTLIBS AND NOT TARGET "zlib")
+ IF (HDF5_ENABLE_SZIP_SUPPORT AND HDF5_PACKAGE_EXTLIBS AND NOT TARGET "szip")
INCLUDE (${SELF_DIR}/../SZIP/SZIP-targets.cmake)
- ENDIF (HDF5_ENABLE_SZIP_SUPPORT AND HDF5_PACKAGE_EXTLIBS)
+ ENDIF (HDF5_ENABLE_SZIP_SUPPORT AND HDF5_PACKAGE_EXTLIBS AND NOT TARGET "szip")
INCLUDE (${SELF_DIR}/hdf5-targets.cmake)
SET (HDF5_LIBRARIES "@HDF5_LIBRARIES_TO_EXPORT@")
ENDIF (NOT TARGET "hdf5")