diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2016-01-22 20:17:01 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2016-01-22 20:17:01 (GMT) |
commit | 13b1e5a33bf1e3092927f6539572a383e4ae9ffd (patch) | |
tree | 1667ab57509d5656b87dcda09752afc3f90df2df /bin/cmakehdf5 | |
parent | fd4c02ba08b6ac4a3e8798e8b6619bb7dbfd15ec (diff) | |
download | hdf5-13b1e5a33bf1e3092927f6539572a383e4ae9ffd.zip hdf5-13b1e5a33bf1e3092927f6539572a383e4ae9ffd.tar.gz hdf5-13b1e5a33bf1e3092927f6539572a383e4ae9ffd.tar.bz2 |
[svn-r28962] merged r28949 from trunk.
HDFFV-9660: add an option to enable threadsafe feature in cmakehdf5
Tested: platypus.
There are still something strange messages during the configure step.
Waiting for Allen to response.
Diffstat (limited to 'bin/cmakehdf5')
-rwxr-xr-x | bin/cmakehdf5 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5 index ca0e6b4..d2d8078 100755 --- a/bin/cmakehdf5 +++ b/bin/cmakehdf5 @@ -47,6 +47,7 @@ build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=OFF # C++ interface default off build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=OFF # Fortran interface default off 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_threadsafe=-DHDF5_ENABLE_THREADSAFE:BOOL=OFF # Threadsafe feature default off 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 @@ -85,6 +86,8 @@ Usage: $progname [<options>] enable or disable c++ API. Default is off. --enable-hl | --disable-hl: enable or disable high level API. Default is on. + --enable-threadsafe | --disable-threadsafe: + enable or disable threadsafe feature. Default is off --enable-shared | --disable-shared: enable or disable shared lib. Default is on. --enable-tools | --disable-tools: @@ -238,6 +241,12 @@ while [ $# -gt 0 ]; do --disable-hl) build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=OFF ;; + --enable-threadsafe) + build_threadsafe=-DHDF5_ENABLE_THREADSAFE:BOOL=ON + ;; + --disable-threadsafe) + build_threadsafe=-DHDF5_ENABLE_THREADSAFE:BOOL=OFF + ;; --enable-shared) shared_lib=-DBUILD_SHARED_LIBS:BOOL=ON ;; @@ -340,6 +349,7 @@ STEP "Configure..." \ $build_fortran \ $enable_f2003 \ $build_hl_lib \ + $build_threadsafe \ $shared_lib \ $build_testing \ $build_tools \ |