aboutsummaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-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()