aboutsummaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/curl-config.cmake.in (renamed from CMake/curl-config.cmake)5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMake/curl-config.cmake b/CMake/curl-config.cmake.in
index 10045c6b7..73e04c606 100644
--- a/CMake/curl-config.cmake
+++ b/CMake/curl-config.cmake.in
@@ -9,6 +9,11 @@ if(NOT CURL_FIND_COMPONENTS)
endif()
endif()
+include(CMakeFindDependencyMacro)
+if(CURL_FIND_REQUIRED_libcurl)
+ find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
+endif()
+
set(_curl_missing_components)
foreach(_comp ${CURL_FIND_COMPONENTS})
if(EXISTS "${_DIR}/${_comp}-target.cmake")