From abad30a44daa4c516bdc7f3b98075fe54ae98b25 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 2 Apr 2015 17:36:46 -0500 Subject: [svn-r26712] Bug fix: cmakehdf5 broken because zlib is no longer configure in by default. That broke the testings as some testfiles have zlib compressed datasets. Added options control to enable the linking of zlib external libarary by default and turn off the szip library linking as szip library may not be avaiable. This matches the established settings. Tested: run cmakehdf5 by hand in jam and platypus. Also tested in wren but it failed in the testing stage. Also tried "cmakehdf5 --script" in jam. It failed. --- bin/cmakehdf5 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/cmakehdf5 b/bin/cmakehdf5 index 7ecb19c..1f0fb7c 100755 --- a/bin/cmakehdf5 +++ b/bin/cmakehdf5 @@ -49,6 +49,8 @@ enable_f2003=-DHDF5_ENABLE_F2003:BOOL=OFF # Fortran2003 interface default off 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 #============= @@ -82,6 +84,12 @@ Usage: $progname [] enable or disable building tools. Default is on. --enable-testing | --disable-testing: enable or disable building tests. Default is on. + --with-zlib=INC,LIB | --without-zlib: + Use zlib library for external deflate I/O filter. Default is on. + INC and LIB are the include and lib directories. + --with-szlib=INC,LIB| --without-szlib: + Use szip library for external szip library I/O filter. Default is off. + INC and LIB are the include and lib directories. --help: shows details help page EOF } @@ -208,12 +216,15 @@ echo Running Cmake for HDF5-${version} ... # 4. Configure the C library, tools and tests with this command: STEP "Configure..." "cmake \ + -C $cacheinit \ $build_cpp_lib \ $build_fortran \ $enable_f2003 \ $build_hl_lib \ $build_testing \ $build_tools \ + $with_zlib \ + $with_szlib \ $srcdir" $configlog # 5. Build the C library, tools and tests with this command: -- cgit v0.12