Added
Link Here
|
0 |
- |
1 |
Disable usage of pkg-config for OpenSSL to avoid linking two different versions. |
|
|
2 |
See PRs: 258345, 271495 |
3 |
|
4 |
--- lib/tls/CMakeLists.txt.orig 2023-05-19 06:48:43 UTC |
5 |
+++ lib/tls/CMakeLists.txt |
6 |
@@ -264,10 +264,10 @@ if (LWS_WITH_SSL) |
7 |
if (NOT OPENSSL_FOUND AND NOT LWS_WITH_BORINGSSL) |
8 |
# TODO: Add support for STATIC also. |
9 |
if (NOT LWS_PLAT_FREERTOS) |
10 |
- find_package(PkgConfig QUIET) |
11 |
- pkg_check_modules(PC_OPENSSL openssl QUIET) |
12 |
+ #find_package(PkgConfig QUIET) |
13 |
+ #pkg_check_modules(PC_OPENSSL openssl QUIET) |
14 |
find_package(OpenSSL REQUIRED) |
15 |
- list(APPEND OPENSSL_LIBRARIES ${PC_OPENSSL_LIBRARIES}) |
16 |
+ #list(APPEND OPENSSL_LIBRARIES ${PC_OPENSSL_LIBRARIES}) |
17 |
set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} PARENT_SCOPE) |
18 |
endif() |
19 |
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}") |