aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslodki <slodki@users.noreply.github.com>2018-09-16 01:15:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-18 16:34:23 +0200
commit71b3c675e83e492c9fa6b9226baccaeaee14f5c6 (patch)
tree8e131706e1d69fdfd676a09271ecbea74cd8a2c7
parentec5d0991ccf1e04fc384b312fc1b24c21259c0f1 (diff)
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 7867aaa9a01decf93711428462335be8cef70212 Reviewed-by: Sergei Nikulov Closes #3001
-rw-r--r--CMake/curl-config.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in
index 73e04c606..40c1288e1 100644
--- a/CMake/curl-config.cmake.in
+++ b/CMake/curl-config.cmake.in
@@ -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()