Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 680df1e

Browse files
mkruskal-googlecopybara-github
authored andcommittedApr 20, 2023
Add pkg-config file declaring Abseil dependency
See protocolbuffers/protobuf#12439 for more information PiperOrigin-RevId: 525796488
1 parent 72c943d commit 680df1e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ if (utf8_range_ENABLE_INSTALL)
7373
install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
7474
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
7575
)
76+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/utf8_range.pc.cmake
77+
${CMAKE_CURRENT_BINARY_DIR}/utf8_range.pc @ONLY)
78+
install(
79+
FILES ${CMAKE_CURRENT_BINARY_DIR}/utf8_range.pc
80+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
7681

7782
# Install public headers explicitly.
7883
install(FILES utf8_range.h utf8_validity.h

‎cmake/utf_range.pc.cmake

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
exec_prefix=@CMAKE_INSTALL_PREFIX@
3+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
4+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
5+
6+
Name: UTF8 Range
7+
Description: Google's Data Interchange Format
8+
Version: 1.0
9+
Requires: absl_strings
10+
Libs: -L${libdir} -lprotobuf-lite @CMAKE_THREAD_LIBS_INIT@
11+
Cflags: -I${includedir}
12+
Conflicts: protobuf

0 commit comments

Comments
 (0)