We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8c35e commit 9c0d9ebCopy full SHA for 9c0d9eb
1 file changed
ci/scripts/jni_macos_build.sh
@@ -179,8 +179,11 @@ fi
179
# Build up the JNI CMake args based on what's available
180
jni_cmake_args="${llvm_dir_arg}"
181
182
-# Add Protobuf path if bundled, otherwise CMake will find system Protobuf
183
-if [ -d "${build_dir}/cpp/protobuf_ep-install" ]; then
+# Add Protobuf path if bundled, otherwise CMake will find system Protobuf.
+# Arrow 23+ uses FetchContent (protobuf_fc-install); older versions used ExternalProject (protobuf_ep-install).
184
+if [ -d "${build_dir}/cpp/protobuf_fc-install" ]; then
185
+ jni_cmake_args="${jni_cmake_args} -DProtobuf_ROOT=${build_dir}/cpp/protobuf_fc-install"
186
+elif [ -d "${build_dir}/cpp/protobuf_ep-install" ]; then
187
jni_cmake_args="${jni_cmake_args} -DProtobuf_ROOT=${build_dir}/cpp/protobuf_ep-install"
188
fi
189
0 commit comments