Skip to content

Commit

Permalink
ARROW-17494: [C++] Fix substrait tests linkage on static builds (apac…
Browse files Browse the repository at this point in the history
…he#13939)

Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
raulcd authored and zagto committed Oct 7, 2022
1 parent c82b362 commit 8749fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/cmake_modules/BuildUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ function(ADD_ARROW_LIB LIB_NAME)
endif()

if(ARG_STATIC_LINK_LIBS)
target_link_libraries(${LIB_NAME}_static LINK_PRIVATE
"$<BUILD_INTERFACE:${ARG_STATIC_LINK_LIBS}>")
target_link_libraries(${LIB_NAME}_static
PUBLIC "$<BUILD_INTERFACE:${ARG_STATIC_LINK_LIBS}>")
if(USE_OBJLIB)
# Ensure that dependencies are built before compilation of objects in
# object library, rather than only before the final link step
Expand Down

0 comments on commit 8749fe4

Please sign in to comment.