Skip to content

Commit 9b23a70

Browse files
authored
ARROW-17494: [C++] Fix substrait tests linkage on static builds (#13939)
Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 78d586a commit 9b23a70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cpp/cmake_modules/BuildUtils.cmake‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,8 @@ function(ADD_ARROW_LIB LIB_NAME)
399399
endif()
400400

401401
if(ARG_STATIC_LINK_LIBS)
402-
target_link_libraries(${LIB_NAME}_static LINK_PRIVATE
403-
"$<BUILD_INTERFACE:${ARG_STATIC_LINK_LIBS}>")
402+
target_link_libraries(${LIB_NAME}_static
403+
PUBLIC "$<BUILD_INTERFACE:${ARG_STATIC_LINK_LIBS}>")
404404
if(USE_OBJLIB)
405405
# Ensure that dependencies are built before compilation of objects in
406406
# object library, rather than only before the final link step

0 commit comments

Comments
 (0)