From 2ac36f839c411c268e8d20f19a6bdefc5b91b8c4 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 24 Sep 2010 10:52:29 +0200 Subject: [PATCH] Fixed: optional OpenSSL only when building in static (curl could need it) --- code/ryzom/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/CMakeLists.txt b/code/ryzom/CMakeLists.txt index ec381e5da..69b413426 100644 --- a/code/ryzom/CMakeLists.txt +++ b/code/ryzom/CMakeLists.txt @@ -8,7 +8,6 @@ ELSE(WITH_LUA51) ENDIF(WITH_LUA51) FIND_PACKAGE(Luabind REQUIRED) FIND_PACKAGE(CURL REQUIRED) -FIND_PACKAGE(OpenSSL REQUIRED) FIND_PACKAGE(Libwww) FIND_PACKAGE(ZLIB) IF(NOT WIN32 AND NOT APPLE) @@ -26,6 +25,7 @@ IF(NOT WIN32) ENDIF(NOT WIN32) IF(WITH_STATIC) + FIND_PACKAGE(OpenSSL) SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES}) SET(CURL_DEFINITIONS -DCURL_STATICLIB) ENDIF(WITH_STATIC)