Skip to content

Commit

Permalink
Fix CMake shared library build using utf8_range and utf8_valid (#14867)
Browse files Browse the repository at this point in the history
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=#14867 from Chekov2k:main 971562b
PiperOrigin-RevId: 626125210
  • Loading branch information
Arnim Balzer authored and copybara-github committed Apr 18, 2024
1 parent b4bd664 commit ffd5c1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/utf8_range/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ffd5c1b

Please sign in to comment.