mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 21:48:10 -05: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:
parent
ec5d0991cc
commit
71b3c675e8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user