mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if("@USE_OPENSSL@")
|
||||||
include(CMakeFindDependencyMacro)
|
include(CMakeFindDependencyMacro)
|
||||||
if(CURL_FIND_REQUIRED_libcurl)
|
|
||||||
find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
|
find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user