mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-01 16:16:00 +00:00
Changed: include ssl only if the lib is found
This commit is contained in:
parent
2dfc82bba9
commit
bb6f4cbc21
1 changed files with 4 additions and 2 deletions
|
@ -25,8 +25,10 @@ IF(NOT WIN32)
|
|||
ENDIF(NOT WIN32)
|
||||
|
||||
IF(WITH_STATIC)
|
||||
FIND_PACKAGE(OpenSSL)
|
||||
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
||||
FIND_PACKAGE(OpenSSL QUIET)
|
||||
IF(OPENSSL_FOUND)
|
||||
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
||||
ENDIF(OPENSSL_FOUND)
|
||||
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
||||
ENDIF(WITH_STATIC)
|
||||
|
||||
|
|
Loading…
Reference in a new issue