Unverified Commit dd98c1f3 authored by Tuomo Rinne's avatar Tuomo Rinne Committed by Daniel Stenberg
Browse files

cmake: add find_dependency call for ZLIB to CMake config file

parent fc0672b4
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@PACKAGE_INIT@

if("@USE_OPENSSL@")
if("@USE_OPENSSL@" OR "@CURL_ZLIB@" )
    include(CMakeFindDependencyMacro)
    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@")