diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-09-29 14:48:15 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-09-29 14:48:15 (GMT) |
commit | 24e07923961b924694706366349f85365190aa90 (patch) | |
tree | 25bf45c95d2ed4047448fb6df631eb0dde0af86b | |
parent | 0a00129baeee660977e6421a49c66dc3fee18733 (diff) | |
download | hdf5-24e07923961b924694706366349f85365190aa90.zip hdf5-24e07923961b924694706366349f85365190aa90.tar.gz hdf5-24e07923961b924694706366349f85365190aa90.tar.bz2 |
[svn-r19490] Correct dependency on extlib project when not using external projects.
-rw-r--r-- | CMakeLists.txt | 14 |
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 |