cmake use_tls fix
This commit is contained in:
parent
77d65760f0
commit
b2f9c219b1
@ -143,7 +143,7 @@ if (UNIX)
|
||||
target_link_libraries(ixwebsocket ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
||||
if (USE_OPEN_SSL)
|
||||
if (USE_TLS AND USE_OPEN_SSL)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
add_definitions(${OPENSSL_DEFINITIONS})
|
||||
message(STATUS "OpenSSL: " ${OPENSSL_VERSION})
|
||||
@ -151,7 +151,7 @@ if (USE_OPEN_SSL)
|
||||
target_link_libraries(ixwebsocket ${OPENSSL_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (USE_MBED_TLS)
|
||||
if (USE_TLS AND USE_MBED_TLS)
|
||||
if (USE_VENDORED_THIRD_PARTY)
|
||||
set (ENABLE_PROGRAMS OFF)
|
||||
add_subdirectory(third_party/mbedtls)
|
||||
|
Loading…
Reference in New Issue
Block a user