summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2024-05-29 07:57:30 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-05-29 07:58:29 -0700
commit7ce797f21767a22fad7eed8f91962c08b8fa8d27 (patch)
treef2bcea7c3320d218f112d6f80eb45c939b94ad7f /CMake
parent64457068f2b1960e4c339e0c090eeb8b73ddddd6 (diff)
Enable building monolithic shared library on macOS and Linux.
PiperOrigin-RevId: 638284938 Change-Id: I4189215d85862a8eeaff5c477ff2e47252fa52d3
Diffstat (limited to 'CMake')
-rw-r--r--CMake/AbseilDll.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMake/AbseilDll.cmake b/CMake/AbseilDll.cmake
index b15e90ba..2eabd866 100644
--- a/CMake/AbseilDll.cmake
+++ b/CMake/AbseilDll.cmake
@@ -747,7 +747,12 @@ function(absl_make_dll)
else()
set(_dll "abseil_dll")
set(_dll_files ${ABSL_INTERNAL_DLL_FILES})
- set(_dll_libs "")
+ set(_dll_libs
+ Threads::Threads
+ # TODO(#1495): Use $<LINK_LIBRARY:FRAMEWORK,CoreFoundation> once our
+ # minimum CMake version >= 3.24
+ $<$<PLATFORM_ID:Darwin>:-Wl,-framework,CoreFoundation>
+ )
set(_dll_compile_definitions "")
set(_dll_includes "")
set(_dll_consume "ABSL_CONSUME_DLL")