summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-09-29 14:48:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-09-29 14:48:15 (GMT)
commit24e07923961b924694706366349f85365190aa90 (patch)
tree25bf45c95d2ed4047448fb6df631eb0dde0af86b /CMakeLists.txt
parent0a00129baeee660977e6421a49c66dc3fee18733 (diff)
downloadhdf5-24e07923961b924694706366349f85365190aa90.zip
hdf5-24e07923961b924694706366349f85365190aa90.tar.gz
hdf5-24e07923961b924694706366349f85365190aa90.tar.bz2
[svn-r19490] Correct dependency on extlib project when not using external projects.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 202909f..eb65114 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -616,12 +616,14 @@ ENDIF (HDF5_USE_H5DUMP_PACKED_BITS)
#-----------------------------------------------------------------------------
ADD_SUBDIRECTORY (${HDF5_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/src)
-IF (ZLIB_FOUND)
- ADD_DEPENDENCIES (${HDF5_LIB_TARGET} ZLIB)
-ENDIF (ZLIB_FOUND)
-IF (SZIP_FOUND)
- ADD_DEPENDENCIES (${HDF5_LIB_TARGET} SZIP)
-ENDIF (SZIP_FOUND)
+IF (NOT HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "NO")
+ IF (ZLIB_FOUND)
+ ADD_DEPENDENCIES (${HDF5_LIB_TARGET} ZLIB)
+ ENDIF (ZLIB_FOUND)
+ IF (SZIP_FOUND)
+ ADD_DEPENDENCIES (${HDF5_LIB_TARGET} SZIP)
+ ENDIF (SZIP_FOUND)
+ENDIF (NOT HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "NO")
#-----------------------------------------------------------------------------
# Build utility to copy and strip X lines of file