kou commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5063708628
Could you also try this?
```diff
diff --git a/cpp/src/arrow/engine/CMakeLists.txt
b/cpp/src/arrow/engine/CMakeLists.txt
index adf98087ad..438e00936e 100644
--- a/cpp/src/arrow/engine/CMakeLists.txt
+++ b/cpp/src/arrow/engine/CMakeLists.txt
@@ -70,6 +70,10 @@ foreach(LIB_TARGET ${ARROW_SUBSTRAIT_LIBRARIES})
target_compile_definitions(${LIB_TARGET} PRIVATE ARROW_ENGINE_EXPORTING)
endforeach()
+if(ARROW_BUILD_STATIC AND WIN32)
+ target_compile_definitions(arrow_substrait_static PUBLIC
ARROW_ENGINE_STATIC)
+ endif()
+
set(ARROW_SUBSTRAIT_TEST_LINK_LIBS ${ARROW_SUBSTRAIT_LINK_lIBS}
${ARROW_TEST_LINK_LIBS})
if(ARROW_TEST_LINKAGE STREQUAL "static")
list(APPEND ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_static
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]