diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-21 14:25:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-21 14:25:23 (GMT) |
commit | fd90a6f5c4c7733027c711e70e2df1b18e8e5286 (patch) | |
tree | 22f45e2b429fa00ae839aa3ffad59c63068271fd /bin | |
parent | 209df7c3b095da2b08eb77f5803a1e43207aa2db (diff) | |
parent | 0e4ee6d829d658af60ec21ea57138e6607f2ace6 (diff) | |
download | hdf5-fd90a6f5c4c7733027c711e70e2df1b18e8e5286.zip hdf5-fd90a6f5c4c7733027c711e70e2df1b18e8e5286.tar.gz hdf5-fd90a6f5c4c7733027c711e70e2df1b18e8e5286.tar.bz2 |
[svn-r27842] Description:
Sync w/trunk.
Tested on:
MacOSX/64 10.10.5 (amazon) w/serial & parallel (although not CMake)
(h5committest not required on this branch)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmakehdf5 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5 index 77fd452..afd4604 100755 --- a/bin/cmakehdf5 +++ b/bin/cmakehdf5 @@ -50,7 +50,8 @@ build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=ON # High Level interface default on build_testing=-DBUILD_TESTING:BOOL=ON # Build tests default on build_tools=-DHDF5_BUILD_TOOLS:BOOL=ON # Build tools default on with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT=ON # enable zlib filter default on -with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT=OFF # enables zlib filter default off +with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT=OFF # enables szip filter default off +szlib_path="" # szip lib path default off shared_lib=-DBUILD_SHARED_LIBS:BOOL=ON # enables shared lib; default on @@ -87,6 +88,8 @@ Usage: $progname [<options>] enable or disable building tests. Default is on. --with-zlib | --with-zlib=<libpath> | --without-zlib: Use zlib library for external deflate I/O filter. Default is on. + --with-szlib | --with-szlib=<libpath> | --without-szlib: + Use szlib library for external deflate I/O filter. Default is on. --help: shows details help page <libpath>: the file path to the library, expect <libpath>/lib and <libpath>/include. @@ -221,6 +224,19 @@ while [ $# -gt 0 ]; do --without-zlib) with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF ;; + --with-szlib) + with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON + szlib_path="" # szlib is in default paths + ;; + --with-szlib=*) + xarg=`echo $1 | cut -d= -f2-` + with_szlib="-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON" + szlib_path="SZIP_INSTALL=$xarg" + ;; + --without-szlib) + with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF + szlib_path="" # reset the path + ;; --help) # print the detail help page and exit HELP @@ -258,7 +274,9 @@ fi echo Running Cmake for HDF5-${version} ... # 4. Configure the C library, tools and tests with this command: # If successful, append the configure summary to the configure logfile. -STEP "Configure..." "cmake \ +STEP "Configure..." \ + "env ${szlib_path} \ + cmake \ -C $cacheinit \ $build_cpp_lib \ $build_fortran \ |