File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -129,15 +129,17 @@ function build_netcdf {
129
129
&& make -j4 \
130
130
&& make install )
131
131
fi
132
- else
132
+ else # use cmake for linux since autoconf fails for 4.9.0
133
+ # && cmake ../ -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} -DENABLE_NETCDF_4=ON -DENABLE_DAP=ON -DBUILD_SHARED_LIBS=ON -DPLUGIN_INSTALL_DIR=YES \
133
134
(cd netcdf-c-${NETCDF_VERSION} \
134
135
&& curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
135
136
&& patch -p0 < CMakeLists.txt.patch \
136
137
&& mkdir build \
137
138
&& cd build \
138
139
&& export HDF5_PLUGIN_PATH=$BUILD_PREFIX /lib/netcdf-plugins \
140
+ && unset HDF5_PLUGIN_PATH
139
141
&& mkdir -p $HDF5_PLUGIN_PATH \
140
- && cmake ../ -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} -DENABLE_NETCDF_4=ON -DENABLE_DAP=ON -DBUILD_SHARED_LIBS=ON -DPLUGIN_INSTALL_DIR =YES \
142
+ && cmake ../ -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} -DENABLE_NETCDF_4=ON -DENABLE_DAP=ON -DBUILD_SHARED_LIBS=ON -DENABLE_PLUGIN_INSTALL=NO =YES \
141
143
&& make -j4 \
142
144
&& make install \
143
145
&& ls -l $HDF5_PLUGIN_PATH )
You can’t perform that action at this time.
0 commit comments