1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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

Reviewed-by: Sergei Nikulov
Closes #3001
This commit is contained in:
slodki 2018-09-16 01:15:08 +02:00 committed by Daniel Stenberg
parent ec5d0991cc
commit 71b3c675e8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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()