File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
include (GNUInstallDirs )
2
2
3
+ foreach (_target IN LISTS protobuf_ABSL_USED_TARGETS )
4
+ string (REPLACE :: _ _modified_target ${_target} )
5
+ list (APPEND _pc_targets ${_modified_target} )
6
+ endforeach ()
7
+ list (APPEND _pc_targets "utf8_range" )
8
+
9
+ string (JOIN " " _pc_target_list ${_pc_targets} )
10
+ set (_protobuf_PC_REQUIRES ${_pc_target_list} )
11
+
3
12
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/protobuf.pc.cmake
4
13
${CMAKE_CURRENT_BINARY_DIR} /protobuf.pc @ONLY )
5
14
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmake/protobuf-lite.pc.cmake
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
6
6
Name : Protocol Buffers
7
7
Description: Google's Data Interchange Format
8
8
Version : @protobuf_VERSION@
9
+ Requires: @_protobuf_PC_REQUIRES@
10
+ Requires.private: @_protobuf_PC_REQUIRES_PRIVATE@
9
11
Libs: -L${libdir} -lprotobuf-lite @CMAKE_THREAD_LIBS_INIT@
10
12
Cflags: -I${includedir}
11
13
Conflicts: protobuf
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
6
6
Name : Protocol Buffers
7
7
Description: Google's Data Interchange Format
8
8
Version : @protobuf_VERSION@
9
+ Requires: @_protobuf_PC_REQUIRES@
10
+ Requires.private: @_protobuf_PC_REQUIRES_PRIVATE@
9
11
Libs: -L${libdir} -lprotobuf @CMAKE_THREAD_LIBS_INIT@
10
12
Cflags: -I${includedir}
11
13
Conflicts: protobuf-lite
You can’t perform that action at this time.
0 commit comments