move security framework linking to ixwebsocket (#26)

This commit is contained in:
Dimon4eg
2019-04-15 03:13:24 +03:00
committed by Benjamin Sergeant
parent d8e83caffc
commit dac18fcabf
2 changed files with 4 additions and 4 deletions

View File

@ -104,6 +104,10 @@ add_library( ixwebsocket STATIC
# gcc/Linux needs -pthread
find_package(Threads)
if (APPLE AND USE_TLS)
target_link_libraries(ixwebsocket "-framework foundation" "-framework security")
endif()
if(UNIX AND NOT APPLE)
find_package(OpenSSL REQUIRED)
add_definitions(${OPENSSL_DEFINITIONS})