summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-09-29 14:47:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-09-29 14:47:44 (GMT)
commit4d1741cdabe245cf5111d177a92bf318c43275d3 (patch)
tree6cfa482f708f11f3dd611b695d676787fef20048
parent3fbd018d8bd317b47587e20e234b7687aaa8df44 (diff)
downloadhdf5-4d1741cdabe245cf5111d177a92bf318c43275d3.zip
hdf5-4d1741cdabe245cf5111d177a92bf318c43275d3.tar.gz
hdf5-4d1741cdabe245cf5111d177a92bf318c43275d3.tar.bz2
[svn-r19489] Correct dependency on extlib project when not using external projects.
-rw-r--r--CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d79fc90..37820a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -614,12 +614,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