1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cmake: fix compilation with OpenSSL subproject

https://github.com/warmcat/libwebsockets/pull/2535
This commit is contained in:
Ferenc Gerlits 2022-01-10 16:46:10 +01:00 committed by Andy Green
parent 7e841130e0
commit 133063fc68

View file

@ -254,6 +254,10 @@ if (LWS_WITH_SSL)
endif()
if (NOT chose_ssl)
if (OPENSSL_FOUND AND "${OPENSSL_INCLUDE_DIRS}" STREQUAL "")
set(OPENSSL_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")
endif()
if (NOT OPENSSL_FOUND AND NOT LWS_WITH_BORINGSSL)
# TODO: Add support for STATIC also.
if (NOT LWS_PLAT_FREERTOS)