File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ function build_netcdf {
123
123
# use cmake
124
124
# CMakeLists.txt patch needed for NETCDF_VERSION 4.9.0
125
125
# no plugins installed
126
+ if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
127
+ (cd netcdf-c-${NETCDF_VERSION} \
128
+ && ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
129
+ && make -j4 \
130
+ && make install )
131
+ else
126
132
(cd netcdf-c-${NETCDF_VERSION} \
127
133
&& curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
128
134
&& patch -p0 < CMakeLists.txt.patch \
@@ -131,6 +137,7 @@ function build_netcdf {
131
137
&& cmake ../ -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} -DENABLE_NETCDF_4=ON -DENABLE_DAP=ON -DBUILD_SHARED_LIBS=ON -DENABLE_PLUGIN_INSTALL=NO \
132
138
&& make -j4 \
133
139
&& make install )
140
+ fi
134
141
# plugins installed
135
142
# (cd netcdf-c-${NETCDF_VERSION} \
136
143
# && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
You can’t perform that action at this time.
0 commit comments