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 {
129129 && make -j4 \
130130 && make install )
131131 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 \
133134 (cd netcdf-c-${NETCDF_VERSION} \
134135 && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
135136 && patch -p0 < CMakeLists.txt.patch \
136137 && mkdir build \
137138 && cd build \
138139 && export HDF5_PLUGIN_PATH=$BUILD_PREFIX /lib/netcdf-plugins \
140+ && unset HDF5_PLUGIN_PATH
139141 && 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 \
141143 && make -j4 \
142144 && make install \
143145 && ls -l $HDF5_PLUGIN_PATH )
You can’t perform that action at this time.
0 commit comments