Skip to content

Commit 0ca9763

Browse files
committed
Fix: explicitly build protobuf_fc target to populate protobuf_fc-install for JNI build
1 parent 9c0d9eb commit 0ca9763

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ci/scripts/jni_macos_build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ cmake \
156156
"${re2_source_arg}" \
157157
-GNinja
158158
cmake --build "${build_dir}/cpp" --target install
159+
# Arrow 23+ builds Protobuf via FetchContent. The protobuf_fc target installs it
160+
# to protobuf_fc-install so the separate JNI CMake invocation can find it.
161+
# This target is NOT in the install dependency chain (Ninja skips ALL-only targets
162+
# when building --target install), so we must trigger it explicitly.
163+
cmake --build "${build_dir}/cpp" --target protobuf_fc || true
159164
github_actions_group_end
160165

161166
if [ "${ARROW_RUN_TESTS:-}" == "ON" ]; then

0 commit comments

Comments
 (0)