diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-31 16:04:32 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-31 16:04:32 (GMT) |
commit | 4cae0acb175e6b4348c68d5ffa4b0490440c5425 (patch) | |
tree | 6767d1e461e5e6cf19ff5de0a0aec1196caaa881 /config | |
parent | 2f282ffa9ddd0115e37b465463a104c49299fa33 (diff) | |
download | hdf5-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.in | 8 |
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")
|