mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[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:
parent
aa992d3820
commit
402222ecea
15
ports/llhttp/fix-usage.patch
Normal file
15
ports/llhttp/fix-usage.patch
Normal 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)
|
@ -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)
|
||||
|
@ -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",
|
||||
|
@ -5022,7 +5022,7 @@
|
||||
},
|
||||
"llhttp": {
|
||||
"baseline": "8.1.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"llvm": {
|
||||
"baseline": "15.0.7",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "02d4bf2e1a15712c39a825aa81791f032b06fd10",
|
||||
"version": "8.1.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "655fdc5f25da19400df907e4d82fc0b148f02e9d",
|
||||
"version": "8.1.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user