fix openssl cmake errors

This commit is contained in:
Benjamin Sergeant 2020-04-27 10:59:47 -07:00
parent a9f5d5353f
commit fbe5e74109

View File

@ -176,8 +176,8 @@ if (USE_TLS)
endif()
message(STATUS "OpenSSL: " ${OPENSSL_VERSION})
target_compile_definitions(ixwebsocket PUBLIC ${OPENSSL_DEFINITIONS})
target_include_directories(${OPENSSL_INCLUDE_DIR})
add_definitions(${OPENSSL_DEFINITIONS})
target_include_directories(ixwebsocket PUBLIC ${OPENSSL_INCLUDE_DIR})
target_link_libraries(ixwebsocket ${OPENSSL_LIBRARIES})
elseif (USE_MBED_TLS)
message(STATUS "TLS configured to use mbedtls")