summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2016-01-21 22:11:25 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2016-01-21 22:11:25 (GMT)
commit8ca4c2f44b60295ab3f757a9a90ac75ff09cb548 (patch)
treef1016df077a5110ff756104347e3e3f8553354ae /bin
parent8a60e4f1a4e301a99c9e1bc18de8b1db4745f5fa (diff)
downloadhdf5-8ca4c2f44b60295ab3f757a9a90ac75ff09cb548.zip
hdf5-8ca4c2f44b60295ab3f757a9a90ac75ff09cb548.tar.gz
hdf5-8ca4c2f44b60295ab3f757a9a90ac75ff09cb548.tar.bz2
[svn-r28949] 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')
-rwxr-xr-xbin/cmakehdf510
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5
index 7d9caa8..ccef469 100755
--- a/bin/cmakehdf5
+++ b/bin/cmakehdf5
@@ -46,6 +46,7 @@ cacheinit=$srcdir/config/cmake/cacheinit.cmake
build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=OFF # C++ interface default off
build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=OFF # Fortran 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
@@ -82,6 +83,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:
@@ -229,6 +232,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
;;
@@ -330,6 +339,7 @@ STEP "Configure..." \
$build_cpp_lib \
$build_fortran \
$build_hl_lib \
+ $build_threadsafe \
$shared_lib \
$build_testing \
$build_tools \