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 <raulcumplido@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
raulcd authored and anjakefala committed Aug 31, 2022
1 parent 4db5aa7 commit c26afca
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 c26afca

Please sign in to comment.