#6556 Fixed cmakes for static SSL linking

This commit is contained in:
Jamie Newbon 2019-11-01 14:53:17 +00:00
parent 5e19349e2e
commit 4d9c196cae
2 changed files with 3 additions and 2 deletions

View File

@ -306,7 +306,8 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(OPENSSL_USE_STATIC_LIBS TRUE)
set (OPENSSL_LIBS ssl crypto)
find_package(OpenSSL REQUIRED)
set(OPENSSL_LIBS ${OPENSSL_LIBRARIES} pthread dl)
else()
message (FATAL_ERROR "Couldn't find OpenSSL")
endif()

View File

@ -48,7 +48,7 @@ endif()
add_executable(synergyc ${sources})
target_link_libraries(synergyc
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
arch base client common io mt net ipc platform server synlib )
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
install (TARGETS synergyc DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})