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 37c64841ff
commit d4b0839328
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -50,9 +50,5 @@ add_executable(ws
ws_cobra_to_sentry.cpp ws_cobra_to_sentry.cpp
ws.cpp) ws.cpp)
if (APPLE AND USE_TLS)
target_link_libraries(ws "-framework foundation" "-framework security")
endif()
target_link_libraries(ws ixwebsocket) target_link_libraries(ws ixwebsocket)
install(TARGETS ws RUNTIME DESTINATION bin) install(TARGETS ws RUNTIME DESTINATION bin)