97aa1f956a
* Fix mbedtls-3.0 problem This cause CI to fail on macOS. See this migration guide => https://github.com/ARMmbed/mbedtls/blob/development/docs/3.0-migration-guide.md * cmake change find header file * define macro for mbedtls >= 3 * update api call * Update IXWebSocketVersion.h * Update CHANGELOG.md
17 lines
663 B
CMake
17 lines
663 B
CMake
find_path(MBEDTLS_INCLUDE_DIRS mbedtls/ssl.h)
|
|
|
|
# mbedtls-3.0 changed headers files, and we need to ifdef'out a few things
|
|
find_path(MBEDTLS_VERSION_GREATER_THAN_3 mbedtls/build_info.h)
|
|
|
|
find_library(MBEDTLS_LIBRARY mbedtls)
|
|
find_library(MBEDX509_LIBRARY mbedx509)
|
|
find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
|
|
|
|
set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(MbedTLS DEFAULT_MSG
|
|
MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
|
|
|
|
mark_as_advanced(MBEDTLS_INCLUDE_DIRS MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
|