raulcd commented on code in PR #13939:
URL: https://github.com/apache/arrow/pull/13939#discussion_r951488544


##########
cpp/src/arrow/engine/CMakeLists.txt:
##########
@@ -58,7 +58,11 @@ foreach(LIB_TARGET ${ARROW_SUBSTRAIT_LIBRARIES})
   target_compile_definitions(${LIB_TARGET} PRIVATE ARROW_ENGINE_EXPORTING)
 endforeach()
 
-set(ARROW_SUBSTRAIT_TEST_LINK_LIBS ${ARROW_SUBSTRAIT_LINK_lIBS} 
${ARROW_TEST_LINK_LIBS})
+if(NOT ARROW_SUBSTRAIT_LINK_LIBS)
+  set(ARROW_SUBSTRAIT_LINK_LIBS substrait)

Review Comment:
   even-though this fixes the issue I am quite confused on why `list(APPEND 
ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_static)` is not containing 
`substrait` as a dependency to be linked statically as I would have expected. 
I've been able to reproduce also on `UBUNTU=22.04`.
   @lidavidm what do you think? Any idea on a different approach I could take 
on this one?



-- 
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]

Reply via email to