Changed: include ssl only if the lib is found

This commit is contained in:
vl 2010-09-24 14:50:50 +02:00
parent 2dfc82bba9
commit bb6f4cbc21

View file

@ -25,8 +25,10 @@ IF(NOT WIN32)
ENDIF(NOT WIN32) ENDIF(NOT WIN32)
IF(WITH_STATIC) IF(WITH_STATIC)
FIND_PACKAGE(OpenSSL) FIND_PACKAGE(OpenSSL QUIET)
IF(OPENSSL_FOUND)
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES}) SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
ENDIF(OPENSSL_FOUND)
SET(CURL_DEFINITIONS -DCURL_STATICLIB) SET(CURL_DEFINITIONS -DCURL_STATICLIB)
ENDIF(WITH_STATIC) ENDIF(WITH_STATIC)