File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ option(BUILD_DOC "Build Doxygen documentation" OFF)
55option (BUILD_C-ARES "Build C-ARES" ON )
66option (BUILD_TESTING "Build tests" OFF )
77option (BUILD_SHARED_LIBS "Build trantor as a shared lib" OFF )
8- option (TRANTOR_USE_TLS
9- "TLS provider for trantor. Valid options are 'openssl', 'botan' or '' (let the build scripr decide)" ""
10- )
8+ set (TRANTOR_USE_TLS "" CACHE STRING
9+ "TLS provider for trantor. Valid options are 'openssl', 'botan', 'none' or '' (auto-detect)" )
10+ set_property ( CACHE TRANTOR_USE_TLS PROPERTY STRINGS "" openssl botan none )
1111option (USE_SPDLOG "Allow using the spdlog logging library" OFF )
1212
1313list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR } /cmake_modules/)
@@ -158,10 +158,6 @@ else(WIN32)
158158 set (TRANTOR_SOURCES ${TRANTOR_SOURCES} trantor/net/inner/FileBufferNodeUnix.cc)
159159endif (WIN32 )
160160
161- # Somehow the default value of TRANTOR_USE_TLS is OFF
162- if (TRANTOR_USE_TLS STREQUAL OFF )
163- set (TRANTOR_USE_TLS "" )
164- endif ()
165161set (VALID_TLS_PROVIDERS "openssl" "botan" "none" )
166162list (
167163 FIND
You can’t perform that action at this time.
0 commit comments