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 971562ba47
PiperOrigin-RevId: 626125210
pull/16560/head
parent
b4bd664b07
commit
ffd5c1b92b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue