summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-01-25 21:17:54 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-01-25 21:17:54 (GMT)
commitc5dd29c7b86cfb6643e813b8940032a370ab2848 (patch)
treee5b3b57117c2c8ffc1d24f7e5581cc27aee763ef /CMakeLists.txt
parente2ff4638f5c26d4368fcb02da91974de4c3f0f82 (diff)
downloadhdf5-c5dd29c7b86cfb6643e813b8940032a370ab2848.zip
hdf5-c5dd29c7b86cfb6643e813b8940032a370ab2848.tar.gz
hdf5-c5dd29c7b86cfb6643e813b8940032a370ab2848.tar.bz2
[svn-r19993] Added ability to use compressed file for external libraries corrected.
Tested: local linux
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b0b696..f6fb8fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -441,6 +441,13 @@ OPTION (SZIP_USE_EXTERNAL "Use External Library Building for SZIP" 0)
IF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
SET (ZLIB_USE_EXTERNAL 1)
SET (SZIP_USE_EXTERNAL 1)
+ IF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
+ IF (NOT TGZ_PATH})
+ SET (TGZ_PATH ${HDF5_SOURCE_DIR})
+ ENDIF (NOT TGZ_PATH})
+ SET (ZLIB_TGZ_URL ${TGZ_PATH}/${ZLIB_TGZ_NAME})
+ SET (SZIP_TGZ_URL ${TGZ_PATH}/${SZIP_TGZ_NAME})
+ ENDIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
ENDIF (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
#-----------------------------------------------------------------------------