mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: wrong miniz include dir + mbed link on windows
This commit is contained in:
parent
028deaeaa5
commit
f0e4eac10b
2 changed files with 2 additions and 1 deletions
|
@ -890,7 +890,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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue