This commit is contained in:
parent
e61f33a3e9
commit
ebbdee5c4e
|
@ -305,9 +305,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
${OPENSSL_ROOT}/lib/libcrypto.a
|
||||
)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
set(OPENSSL_LIBS ${OPENSSL_LIBRARIES} pthread dl)
|
||||
set (OPENSSL_LIBS ssl crypto)
|
||||
else()
|
||||
message (FATAL_ERROR "Couldn't find OpenSSL")
|
||||
endif()
|
||||
|
|
|
@ -48,7 +48,7 @@ endif()
|
|||
|
||||
add_executable(synergyc ${sources})
|
||||
target_link_libraries(synergyc
|
||||
arch base client common io mt net ipc platform server synlib ${OPENSSL_LIBS})
|
||||
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
install (TARGETS synergyc DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
||||
|
|
Loading…
Reference in New Issue