mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 14:19:01 +08:00
756f184553
* [gRPC] update to v1.41.0 * update version * [upb] Update to 2021-10-19 * Update pacth * [upb] Fix upstream bug * Replace depreciate functions * version * fix code * version * revert patch format * update version * Fix review advise * update version * Remove extra spaces * update version * update version * Remove space in patch file * change patch format from CRLF to CF * update version * revert patch format * update version * revert patch format * update version * Remove unnecessary additional * update version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
|
index c90968f..50637ec 100644
|
|
--- a/cmake/CMakeLists.txt
|
|
+++ b/cmake/CMakeLists.txt
|
|
@@ -8,7 +8,7 @@ else()
|
|
cmake_policy(VERSION 3.12)
|
|
endif()
|
|
|
|
-cmake_minimum_required (VERSION 3.0)
|
|
+cmake_minimum_required (VERSION 3.14)
|
|
cmake_policy(SET CMP0048 NEW)
|
|
|
|
project(upb)
|
|
@@ -154,3 +154,27 @@ set_target_properties(reflection PROPERTIES OUTPUT_NAME upb_reflection)
|
|
set_target_properties(fastdecode PROPERTIES OUTPUT_NAME upb_fastdecode)
|
|
set_target_properties(textformat PROPERTIES OUTPUT_NAME upb_textformat)
|
|
|
|
+install(
|
|
+ DIRECTORY ../upb
|
|
+ DESTINATION include
|
|
+ FILES_MATCHING
|
|
+ PATTERN "*.h"
|
|
+ PATTERN "*.hpp"
|
|
+ PATTERN "*.inc"
|
|
+ PATTERN "*.int.h"
|
|
+)
|
|
+target_include_directories(upb PUBLIC $<INSTALL_INTERFACE:include>)
|
|
+install(TARGETS
|
|
+ upb
|
|
+ utf8_range
|
|
+ fastdecode
|
|
+ json
|
|
+ port
|
|
+ table
|
|
+ descriptor_upb_proto
|
|
+ reflection
|
|
+ textformat
|
|
+ all_libs
|
|
+ EXPORT upb-config
|
|
+)
|
|
+install(EXPORT upb-config NAMESPACE upb:: DESTINATION share/upb)
|