System openSSL for linux
This commit is contained in:
@@ -76,12 +76,17 @@ elseif(UNIX)
|
||||
-m32
|
||||
)
|
||||
endif()
|
||||
if (NOT OPENSSL_FOUND)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
endif()
|
||||
message(STATUS "System OpenSSL: " ${OPENSSL_VERSION})
|
||||
|
||||
add_definitions(${OPENSSL_DEFINITIONS})
|
||||
target_include_directories(ixwebsocket PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/openSSL/lin${BIT}/include
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
)
|
||||
target_link_libraries(ixwebsocket PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/openSSL/lin${BIT}/libcrypto.so.1.1
|
||||
${CMAKE_SOURCE_DIR}/openSSL/lin${BIT}/libssl.so.1.1
|
||||
${OPENSSL_LIBRARIES}
|
||||
pthread
|
||||
)
|
||||
elseif(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user