aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrefkov Aleksander <orefkov@gmail.com>2021-10-12 10:13:18 +0300
committerAndy Green <andy@warmcat.com>2021-10-12 09:46:28 +0100
commitc226da3e108176b00b151b4154e187aa4db9e52f (patch)
tree36d59988f3d6fccc4a1e6ea4eb114d949438cdc0
parent8d4526c780dd4f7d605496da764c614f0b580eaf (diff)
downloadlibwebsockets-c226da3e108176b00b151b4154e187aa4db9e52f.tar.gz
cmake: wrong miniz include dir + mbed link on windows
-rw-r--r--CMakeLists.txt2
-rw-r--r--lib/tls/CMakeLists.txt1
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e428af8..c062be6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -865,7 +865,7 @@ if (LWS_WITH_ZLIB)
if (NOT ZLIB_FOUND)
if (LWS_WITH_MINIZ)
find_package(Miniz REQUIRED)
- set(ZLIB_INCLUDE_DIRS ${MINIZ_INCLUDE_DIRS})
+ set(ZLIB_INCLUDE_DIRS ${MINIZ_INCLUDE_DIR})
set(ZLIB_LIBRARIES ${MINIZ_LIBRARIES})
else()
find_package(ZLIB REQUIRED)
diff --git a/lib/tls/CMakeLists.txt b/lib/tls/CMakeLists.txt
index fdf9cb1d..91ca8be9 100644
--- a/lib/tls/CMakeLists.txt
+++ b/lib/tls/CMakeLists.txt
@@ -367,6 +367,7 @@ if (LWS_WITH_MBEDTLS)
# not supported in esp-idf openssl wrapper yet, but is in our version
set(LWS_HAVE_X509_VERIFY_PARAM_set1_host 1 PARENT_SCOPE)
endif()
+ set(CMAKE_REQUIRED_LIBRARIES ${MBEDTLS_LIBRARY} ${MBEDX509_LIBRARY} ${MBEDCRYPTO_LIBRARY})
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${MBEDTLS_INCLUDE_DIRS})
CHECK_C_SOURCE_COMPILES("#include <mbedtls/x509_crt.h>\nint main(void) { struct mbedtls_x509_crt c; c.authority_key_id.keyIdentifier.tag = MBEDTLS_ASN1_OCTET_STRING; return c.authority_key_id.keyIdentifier.tag; }\n" LWS_HAVE_MBEDTLS_AUTH_KEY_ID)