Skip to content

Commit ba3cb5b

Browse files
authored
Fix the Botan TLS provider build on Linux (#342)
1 parent 40e2194 commit ba3cb5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ if(TRANTOR_TLS_PROVIDER STREQUAL "None" AND (TRANTOR_USE_TLS STREQUAL "botan" OR
199199
if(Botan_FOUND)
200200
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_BOTAN)
201201
target_link_libraries(${PROJECT_NAME} PRIVATE Botan::Botan)
202+
if(CMAKE_CXX_COMPILER_ID MATCHES Clang|GNU)
203+
# Trantor uses some features that are deprecated in C++20 but Botan3 needs C++20
204+
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-deprecated)
205+
endif()
202206
set(TRANTOR_TLS_PROVIDER "Botan")
203207

204208
set(TRANTOR_SOURCES ${TRANTOR_SOURCES} trantor/net/inner/tlsprovider/BotanTLSProvider.cc

0 commit comments

Comments
 (0)