aboutsummaryrefslogtreecommitdiff
path: root/ports/libwebsockets/fix-dependency-libuv.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-04-08 04:12:01 +0800
committerGitHub <noreply@github.com>2021-04-07 13:12:01 -0700
commitff615bb6a94aba978c7c1efdf569b519f61c2ead (patch)
tree5167caec32a9cd13ff4e2dffd620653b150f2ff7 /ports/libwebsockets/fix-dependency-libuv.patch
parent3320069be1b70775071f31b347dde8c6b7757870 (diff)
downloadvcpkg-ff615bb6a94aba978c7c1efdf569b519f61c2ead.tar.gz
vcpkg-ff615bb6a94aba978c7c1efdf569b519f61c2ead.zip
[libwebsockets] Fix usage, export include path (#17003)
* [libwebsockets] Fix usage, export include path * update version record
Diffstat (limited to 'ports/libwebsockets/fix-dependency-libuv.patch')
-rw-r--r--ports/libwebsockets/fix-dependency-libuv.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/libwebsockets/fix-dependency-libuv.patch b/ports/libwebsockets/fix-dependency-libuv.patch
new file mode 100644
index 000000000..1c63d2587
--- /dev/null
+++ b/ports/libwebsockets/fix-dependency-libuv.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/event-libs/libuv/CMakeLists.txt b/lib/event-libs/libuv/CMakeLists.txt
+index fb810a8..2258ade 100644
+--- a/lib/event-libs/libuv/CMakeLists.txt
++++ b/lib/event-libs/libuv/CMakeLists.txt
+@@ -36,7 +36,7 @@ set(LWS_LIBUV_INCLUDE_DIRS CACHE PATH "Path to the libuv include directory")
+ if ("${LWS_LIBUV_LIBRARIES}" STREQUAL "" OR "${LWS_LIBUV_INCLUDE_DIRS}" STREQUAL "")
+ if (NOT LIBUV_FOUND)
+ find_path(LIBUV_INCLUDE_DIRS NAMES uv.h)
+- find_library(LIBUV_LIBRARIES NAMES uv)
++ find_library(LIBUV_LIBRARIES NAMES uv libuv)
+ endif()
+ else()
+ set(LIBUV_LIBRARIES ${LWS_LIBUV_LIBRARIES})