From: slodki Date: Sat, 15 Sep 2018 23:15:08 +0000 (+0200) Subject: cmake: don't require OpenSSL if USE_OPENSSL=OFF X-Git-Tag: curl-7_62_0~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71b3c675e83e492c9fa6b9226baccaeaee14f5c6;p=curl cmake: don't require OpenSSL if USE_OPENSSL=OFF User must have OpenSSL installed even if not used by libcurl at all since 7.61.1 release. Broken at 7867aaa9a01decf93711428462335be8cef70212 Reviewed-by: Sergei Nikulov Closes #3001 --- diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in index 73e04c606..40c1288e1 100644 --- a/CMake/curl-config.cmake.in +++ b/CMake/curl-config.cmake.in @@ -9,8 +9,8 @@ if(NOT CURL_FIND_COMPONENTS) endif() endif() -include(CMakeFindDependencyMacro) -if(CURL_FIND_REQUIRED_libcurl) +if("@USE_OPENSSL@") + include(CMakeFindDependencyMacro) find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@") endif()