From ffd5c1b92bb73faafc17fe611f728fca3b013560 Mon Sep 17 00:00:00 2001 From: Arnim Balzer Date: Thu, 18 Apr 2024 13:02:41 -0700 Subject: [PATCH] Fix CMake shared library build using utf8_range and utf8_valid (#14867) Instead of hardcoding static libraries, allow using the BUILD_SHARED_LIBS behaviour to allow the build of shared utf8 libraries. Closes #14867 COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14867 from Chekov2k:main 971562ba471443b93685ab9fa21a3c25ea2e2672 PiperOrigin-RevId: 626125210 --- third_party/utf8_range/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/utf8_range/CMakeLists.txt b/third_party/utf8_range/CMakeLists.txt index 8d7a6e15c6..4276b97290 100644 --- a/third_party/utf8_range/CMakeLists.txt +++ b/third_party/utf8_range/CMakeLists.txt @@ -11,13 +11,13 @@ option (utf8_range_ENABLE_INSTALL "Configure installation" ON) ## # Create the lightweight C library -add_library (utf8_range STATIC +add_library (utf8_range utf8_range.c ) ## # A heavier-weight C++ wrapper that supports Abseil. -add_library (utf8_validity STATIC utf8_validity.cc utf8_range.c) +add_library (utf8_validity utf8_validity.cc utf8_range.c) # Load Abseil dependency. if (NOT TARGET absl::strings)