Update to Mbed TLS 3.3.0 (#1558)

* Convert mbedtls to subproject

* Align cmake to subproject and mbedtls 3.3.0

* mdebtls 3.3.0

* Add cxx_std_20 for Windows build
This commit is contained in:
LordGrey
2023-02-05 14:19:25 +00:00
committed by GitHub
parent f327b5063e
commit ef7ceb0bbf
5 changed files with 18 additions and 105 deletions

View File

@@ -118,7 +118,10 @@ if(ENABLE_DEV_NETWORK)
string(REGEX MATCH "[0-9]+|-([A-Za-z0-9_.]+)" MBEDTLS_MAJOR ${MBEDTLS_VERSION})
if (MBEDTLS_MAJOR EQUAL "3")
target_compile_definitions(leddevice PRIVATE USE_MBEDTLS3)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_compile_features(leddevice PRIVATE cxx_std_20)
endif()
endif()
endif()
if(ENABLE_DEV_SERIAL)
@@ -160,3 +163,4 @@ endif()
if(ENABLE_MDNS)
target_link_libraries(leddevice mdns)
endif()