From 7ce797f21767a22fad7eed8f91962c08b8fa8d27 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 29 May 2024 07:57:30 -0700 Subject: Enable building monolithic shared library on macOS and Linux. PiperOrigin-RevId: 638284938 Change-Id: I4189215d85862a8eeaff5c477ff2e47252fa52d3 --- CMake/AbseilDll.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'CMake') 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 $ once our + # minimum CMake version >= 3.24 + $<$:-Wl,-framework,CoreFoundation> + ) set(_dll_compile_definitions "") set(_dll_includes "") set(_dll_consume "ABSL_CONSUME_DLL") -- cgit v1.2.3