1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-10 21:48:10 -05:00

cmake: add find_dependency call for ZLIB to CMake config file

This commit is contained in:
Tuomo Rinne 2018-10-11 19:55:53 +01:00 committed by Daniel Stenberg
parent fc0672b447
commit dd98c1f34b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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@")