mirror of
https://github.com/curl/curl.git
synced 2026-07-30 05:48:03 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue