From bb6f4cbc21d0d22aac712c54237b971b0c6c5b80 Mon Sep 17 00:00:00 2001 From: vl Date: Fri, 24 Sep 2010 14:50:50 +0200 Subject: [PATCH] Changed: include ssl only if the lib is found --- code/ryzom/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/ryzom/CMakeLists.txt b/code/ryzom/CMakeLists.txt index 69b413426..6c74161c3 100644 --- a/code/ryzom/CMakeLists.txt +++ b/code/ryzom/CMakeLists.txt @@ -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)