Commits


Abe Tomoaki authored and GitHub committed 29ec77901b6
GH-33849: [C++] Fix builds with ARROW_BUILD_SHARED=OFF and ARROW_BUILD_EXAMPLES=ON (#34350) ### Rationale for this change Building with `ARROW_BUILD_SHARED=OFF` and `ARROW_BUILD_EXAMPLES=ON` causes an error. ### What changes are included in this PR? At `examples/arrow/CMakeLists.txt`, set `arrow_substrait_[shared|static]` and `gandiva_[shared|static]` appropriately according to `ARROW_BUILD_SHARED`. ### Are these changes tested? In `--preset ninja-debug-maximal`, `ARROW_BUILD_EXAMPLES=ON`. ``` $ cmake .. --preset ninja-debug-maximal -DARROW_BUILD_SHARED=OFF -DARROW_BUILD_STATIC=ON $ cmake --build . ``` Build was completed. ``` $ cmake .. --preset ninja-debug-maximal -DARROW_BUILD_SHARED=ON -DARROW_BUILD_STATIC=ON $ cmake --build . ``` Build was completed. ### Are there any user-facing changes? * Closes: #33849 Authored-by: abetomo <abe@enzou.tokyo> Signed-off-by: Sutou Kouhei <kou@clear-code.com>