Skip to content

Commit 527ffa0

Browse files
committed
Add absl libraries to ARROW_BUNDLED_STATIC_LIBS if ABSL_VENDORED for google cloud
1 parent 85620d2 commit 527ffa0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,6 +3423,42 @@ function(build_google_cloud_cpp_storage)
34233423
google-cloud-cpp::rest_internal google-cloud-cpp::common
34243424
PARENT_SCOPE)
34253425

3426+
if(ABSL_VENDORED)
3427+
# Figure out what absl libraries (not header-only) are required by the
3428+
# google-cloud-cpp libraries above and add them to the bundled_dependencies
3429+
#
3430+
# pkg-config --libs absl_memory absl_strings absl_str_format absl_time absl_variant absl_base absl_memory absl_optional absl_span absl_time absl_variant
3431+
# (and then some regexing)
3432+
list(APPEND
3433+
ARROW_BUNDLED_STATIC_LIBS
3434+
absl::bad_optional_access
3435+
absl::bad_variant_access
3436+
absl::base
3437+
absl::civil_time
3438+
absl::cord
3439+
absl::cord_internal
3440+
absl::cordz_functions
3441+
absl::cordz_info
3442+
absl::cordz_handle
3443+
absl::debugging_internal
3444+
absl::demangle_internal
3445+
absl::exponential_biased
3446+
absl::int128
3447+
absl::log_severity
3448+
absl::malloc_internal
3449+
absl::raw_logging_internal
3450+
absl::spinlock_wait
3451+
absl::stacktrace
3452+
absl::str_format_internal
3453+
absl::strings
3454+
absl::strings_internal
3455+
absl::symbolize
3456+
absl::synchronization
3457+
absl::throw_delegate
3458+
absl::time
3459+
absl::time_zone)
3460+
endif()
3461+
34263462
list(POP_BACK CMAKE_MESSAGE_INDENT)
34273463
endfunction()
34283464

0 commit comments

Comments
 (0)