[cse] Link Against OpenSSL

For some reason, this was working untill I added a call
to X509_REQ_get_subject_name, then the linking suddenly
stopped working (even tougth I'm using a ton of other
OpenSSL calls)

Force to link against 1.0
This commit is contained in:
Tomaz Canabrava 2017-09-12 18:28:11 +02:00 committed by Roeland Jago Douma
parent 42a3098595
commit c358980448
No known key found for this signature in database
GPG key ID: F941078878347C0C
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -99,6 +99,8 @@ ENDIF(NOT APPLE)
list(APPEND libsync_LINK_TARGETS
${QT_LIBRARIES}
ocsync
OpenSSL::Crypto
OpenSSL::SSL
${OS_SPECIFIC_LINK_LIBRARIES}
)