[llhttp] Fix usage build failure (#33250)

* [llhttp] Fix usage

* update version

* change patch

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2023-08-23 21:55:34 -07:00 committed by GitHub
parent aa992d3820
commit 402222ecea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65484a7..a6c02c2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,6 +75,10 @@ function(config_library target)
FILE llhttp-config.cmake
NAMESPACE llhttp::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/llhttp)
+ target_include_directories(${target}
+ PRIVATE include ${CMAKE_CURRENT_BINARY_DIR}
+ INTERFACE $<INSTALL_INTERFACE:include>
+)
endfunction(config_library target)
if(BUILD_SHARED_LIBS)

View File

@ -1,8 +1,12 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO nodejs/llhttp
REF refs/tags/release/v8.1.0
SHA512 3b79555f734a6a200a790f04f10be6d3ce5bd999c027a43c0900bb408e7d64be38fe4bbe9f15e57e389f07ba26b8089fc6ba5eef3b497742484f0719e92e9722
PATCHES
fix-usage.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LLHTTP_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LLHTTP_BUILD_SHARED)

View File

@ -1,7 +1,7 @@
{
"name": "llhttp",
"version": "8.1.0",
"port-version": 1,
"port-version": 2,
"description": "Port of http_parser to llparse.",
"homepage": "https://github.com/nodejs/llhttp",
"license": "MIT",

View File

@ -5022,7 +5022,7 @@
},
"llhttp": {
"baseline": "8.1.0",
"port-version": 1
"port-version": 2
},
"llvm": {
"baseline": "15.0.7",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "02d4bf2e1a15712c39a825aa81791f032b06fd10",
"version": "8.1.0",
"port-version": 2
},
{
"git-tree": "655fdc5f25da19400df907e4d82fc0b148f02e9d",
"version": "8.1.0",