summaryrefslogtreecommitdiffstats
path: root/bin/cmakehdf5
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-10-09 12:42:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-10-09 12:42:21 (GMT)
commit9a074a6679fa08b6aa07cc9d2599c51ddb22f514 (patch)
tree1dd1616284132934e71c3736a7c6a213d8ba9430 /bin/cmakehdf5
parent18f671c064783d4274492106ccd7fa0ab8648621 (diff)
downloadhdf5-9a074a6679fa08b6aa07cc9d2599c51ddb22f514.zip
hdf5-9a074a6679fa08b6aa07cc9d2599c51ddb22f514.tar.gz
hdf5-9a074a6679fa08b6aa07cc9d2599c51ddb22f514.tar.bz2
[svn-r25685] HDFFV-8932:
added C++ and High level interface to the default build. Tested: jam, koala, platypus
Diffstat (limited to 'bin/cmakehdf5')
-rwxr-xr-xbin/cmakehdf518
1 files changed, 17 insertions, 1 deletions
diff --git a/bin/cmakehdf5 b/bin/cmakehdf5
index 5da3cca..d9d0c03 100755
--- a/bin/cmakehdf5
+++ b/bin/cmakehdf5
@@ -26,6 +26,16 @@ installlog="#${progname}_5install.log"
srcdir="../hdf5" # expected source directory
exit_code=0
+# Cmake build options
+hdf5_src=../hdf5
+cacheinit=$hdf5_src/config/cmake/cacheinit.cmake
+build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=ON # C++ interface default on
+build_fortran= #-DHDF5_BUILD_FORTRAN:BOOL=ON # Fortran 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
+
+
#=============
# Function definitions
#=============
@@ -99,7 +109,13 @@ fi
echo Running Cmake for HDF5-${version} ...
# 4. Configure the C library, tools and tests with this command:
-STEP "Configure..." "cmake -G 'Unix Makefiles' -DBUILD_TESTING:BOOL=ON -DHDF5_BUILD_TOOLS:BOOL=ON ../hdf5" $configlog
+STEP "Configure..." "cmake \
+ $build_cpp_lib \
+ $build_fortran \
+ $build_hl_lib \
+ $build_testing \
+ $build_tools \
+ $hdf5_src" $configlog
# 5. Build the C library, tools and tests with this command:
STEP "Build the library, tools and tests, ..." "cmake --build . --config Release" $makelog