diff options
| author | Tuomo Rinne <me@tuomo.co.uk> | 2018-10-11 19:55:53 +0100 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2018-10-29 17:10:27 +0100 | 
| commit | dd98c1f34b19aff1ab3db55db36c86f5db5f2685 (patch) | |
| tree | 6676209b9e214893d2924d2d8091a2d955fe8829 | |
| parent | fc0672b447e01595fa745a26452240918fb262ce (diff) | |
cmake: add find_dependency call for ZLIB to CMake config file
| -rw-r--r-- | CMake/curl-config.cmake.in | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in index 2cae644c0..5f296343e 100644 --- a/CMake/curl-config.cmake.in +++ b/CMake/curl-config.cmake.in @@ -1,9 +1,15 @@  @PACKAGE_INIT@ -if("@USE_OPENSSL@") +if("@USE_OPENSSL@" OR "@CURL_ZLIB@" )      include(CMakeFindDependencyMacro) -    find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@") +    if ("@USE_OPENSSL@") +        find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@") +    endif() +    if("@CURL_ZLIB@") +	find_dependency(ZLIB "@ZLIB_VERSION_MAJOR@") +    endif()  endif() +  include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")  check_required_components("@PROJECT_NAME@")  | 
