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:
parent
fc0672b447
commit
dd98c1f34b
@ -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@")
|
||||
|
Loading…
Reference in New Issue
Block a user