Skip to content

Commit 33a6982

Browse files
committed
try disabling plugins on linux cmake build
1 parent 5dceef2 commit 33a6982

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 )

0 commit comments

Comments
 (0)