Unverified Commit 71b3c675 authored by slodki's avatar slodki Committed by Daniel Stenberg
Browse files

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
7867aaa9

Reviewed-by: Sergei Nikulov
Closes #3001
parent ec5d0991
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ if(NOT CURL_FIND_COMPONENTS)
  endif()
endif()

if("@USE_OPENSSL@")
    include(CMakeFindDependencyMacro)
if(CURL_FIND_REQUIRED_libcurl)
    find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
endif()