Skip to content

Commit

Permalink
Update cmakelists.txt for wolfssl for alpn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 23, 2024
1 parent 7c7950e commit 4ac1d2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ if (ENABLE_USE_WOLFSSL)
# 必须定义 BOOST_ASIO_USE_WOLFSSL 以便 asio 使用 wolfssl.
add_definitions(-DBOOST_ASIO_USE_WOLFSSL)

# 打开 TLSX 以允许 alpn 设置.
set(WOLFSSL_TLSX ON)

# gcc 编译时 wolfssl 会有一些 stringop-overflow 警告, 这里忽略掉.
if (NOT MSVC AND NOT APPLE)
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
Expand Down

0 comments on commit 4ac1d2e

Please sign in to comment.