@@ -9,6 +9,15 @@ CPU_COUNT="${CPU_COUNT:-2}"
9
9
function install_buildessentials {
10
10
if [ -e buildessentials-stamp ]; then return ; fi
11
11
12
+ # Cleanup:
13
+ # - Travis-CI macOS ships a pre-installed HDF5
14
+ if [ " $( uname -s) " = " Darwin" ]
15
+ then
16
+ brew unlink hdf5 || true
17
+ brew uninstall --ignore-dependencies hdf5 || true
18
+ rm -rf /usr/local/Cellar/hdf5
19
+ fi
20
+
12
21
# static libc, tar tool
13
22
if [ " $( uname -s) " = " Linux" ]
14
23
then
@@ -84,8 +93,11 @@ function build_adios2 {
84
93
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
85
94
-DADIOS2_BUILD_EXAMPLES=OFF \
86
95
-DADIOS2_BUILD_TESTING=OFF \
96
+ -DADIOS2_USE_BZip2=OFF \
87
97
-DADIOS2_USE_Fortran=OFF \
98
+ -DADIOS2_USE_MPI=OFF \
88
99
-DADIOS2_USE_PNG=OFF \
100
+ -DHDF5_USE_STATIC_LIBRARIES:BOOL=ON \
89
101
-DCMAKE_DISABLE_FIND_PACKAGE_LibFFI=TRUE \
90
102
-DCMAKE_DISABLE_FIND_PACKAGE_BISON=TRUE \
91
103
-DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} ../ADIOS2-*
@@ -138,8 +150,12 @@ function build_hdf5 {
138
150
export CFLAGS+=" -fPIC"
139
151
export CXXFLAGS+=" -fPIC"
140
152
153
+ # CMake shall search for static dependencies of HDF5 and ADIOS1
154
+ export HDF5_USE_STATIC_LIBRARIES=" ON"
155
+ export ADIOS_USE_STATIC_LIBS=" ON"
156
+
141
157
install_buildessentials
142
158
build_blosc
159
+ build_hdf5
143
160
build_adios1
144
161
build_adios2
145
- build_hdf5
0 commit comments