diff --git a/CMakeLists.txt b/CMakeLists.txt index c2540f689..f2fa757a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,7 +189,7 @@ if(BUILD_CLIENT) endif() find_package(Sphinx) find_package(PdfLatex) - + find_package(OpenSSL REQUIRED VERSION 1.0) find_package(SQLite3 3.8.0 REQUIRED) # On some OS, we want to use our own, not the system sqlite if (USE_OUR_OWN_SQLITE3) @@ -197,6 +197,8 @@ if(BUILD_CLIENT) if (WIN32) add_definitions(-DSQLITE_API=__declspec\(dllimport\)) endif() + + endif() find_package(ZLIB) diff --git a/src/libsync/CMakeLists.txt b/src/libsync/CMakeLists.txt index 9a90a175d..65209ffd4 100644 --- a/src/libsync/CMakeLists.txt +++ b/src/libsync/CMakeLists.txt @@ -99,6 +99,8 @@ ENDIF(NOT APPLE) list(APPEND libsync_LINK_TARGETS ${QT_LIBRARIES} ocsync + OpenSSL::Crypto + OpenSSL::SSL ${OS_SPECIFIC_LINK_LIBRARIES} )