diff options
author | Mike Kruskal <mkruskal@google.com> | 2023-01-24 09:18:25 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-24 09:19:28 -0800 |
commit | 20f44782bf1bb87069c43ff3f330e2dc4951a609 (patch) | |
tree | 90272e24533af0de23e69d6729a7b2c4754ba902 /CMake/AbseilHelpers.cmake | |
parent | a9bc6fdf382a8875504536f6f4d6a353b0e84dca (diff) | |
download | abseil-20f44782bf1bb87069c43ff3f330e2dc4951a609.tar.gz abseil-20f44782bf1bb87069c43ff3f330e2dc4951a609.tar.bz2 abseil-20f44782bf1bb87069c43ff3f330e2dc4951a609.zip |
Include Abseil logging in windows dll, and add a test helper dll.
This was tested with https://github.com/protocolbuffers/protobuf/pull/11623 in Protobuf's windows shared library build.
PiperOrigin-RevId: 504294227
Change-Id: I9657197e649a334585bffa2c7bc6340cd2354e84
Diffstat (limited to 'CMake/AbseilHelpers.cmake')
-rw-r--r-- | CMake/AbseilHelpers.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake index 48ca4bde..cfe55825 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -132,10 +132,12 @@ function(absl_cc_library) if (${ABSL_BUILD_DLL}) if(ABSL_ENABLE_INSTALL) absl_internal_dll_contains(TARGET ${_NAME} OUTPUT _in_dll) + absl_internal_test_dll_contains(TARGET ${_NAME} OUTPUT _in_test_dll) else() absl_internal_dll_contains(TARGET ${ABSL_CC_LIB_NAME} OUTPUT _in_dll) + absl_internal_test_dll_contains(TARGET ${ABSL_CC_LIB_NAME} OUTPUT _in_test_dll) endif() - if (${_in_dll}) + if (${_in_dll} OR ${_in_test_dll}) # This target should be replaced by the DLL set(_build_type "dll") set(ABSL_CC_LIB_IS_INTERFACE 1) |