vcpkg/ports/libwebsockets/fix-find-openssl.patch
Ahmed Yarub Hani Al Nuaimi eecbe2a571
[libwebsockets] Fix building with Emscripten (#22563)
* Do not use pkg-config for finding OpenSSL
Do not use libuv when building for Emscripten

(cherry picked from commit f541d3265a00f31a91a56ed25096a0ad476fd2a9)

* Remove redundant flag

* Update versions

* Update versions

* Fix patch

* Update versions

Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com>
2022-01-18 13:34:49 -08:00

12 lines
521 B
Diff

diff --git a/lib/tls/CMakeLists.txt b/lib/tls/CMakeLists.txt
--- a/lib/tls/CMakeLists.txt (revision a5aae049b2a386712e1be3b417915c0d44c7e675)
+++ b/lib/tls/CMakeLists.txt (date 1642427956730)
@@ -257,7 +257,6 @@
find_package(PkgConfig QUIET)
pkg_check_modules(PC_OPENSSL openssl QUIET)
find_package(OpenSSL REQUIRED)
- list(APPEND OPENSSL_LIBRARIES ${PC_OPENSSL_LIBRARIES})
set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} PARENT_SCOPE)
endif()
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")