Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2851,9 +2851,7 @@ if(ARROW_WITH_SIMDJSON)
FORCE_ANY_NEWER_VERSION
TRUE
REQUIRED_VERSION
${ARROW_SIMDJSON_REQUIRED_VERSION}
IS_RUNTIME_DEPENDENCY
FALSE)
${ARROW_SIMDJSON_REQUIRED_VERSION})
if(SIMDJSON_VENDORED)
add_library(arrow::simdjson ALIAS simdjson)
else()
Expand Down
6 changes: 6 additions & 0 deletions cpp/src/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ if(ARROW_WITH_LZ4)
endif()
endif()

if(ARROW_WITH_SIMDJSON)
if(simdjson_SOURCE STREQUAL "SYSTEM")
list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS simdjson::simdjson)
endif()
endif()
Comment on lines +64 to +68

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR, it would be nice if we didn't have to add these declarations separately for Arrow static lib dependencies. @raulcd

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best place would be to try and add something more automatic into resolve_dependency when using SYSTEM but target names are quite varied and sometimes not yet known when resolving the dependency, example ARROW_ZSTD_LIBZSTD. I'll open an issue maybe we can investigate further or try some things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created #50753


if(ARROW_WITH_SNAPPY)
if(Snappy_SOURCE STREQUAL "SYSTEM")
list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS ${Snappy_TARGET})
Expand Down
Loading