mirror of
https://github.com/curl/curl.git
synced 2026-08-02 04:40:28 +03:00
cmake: uniform ZLIB to use USE_ variable and clean curl-config.cmake.in
Closes #3123
This commit is contained in:
parent
dd98c1f34b
commit
e97679a360
2 changed files with 8 additions and 11 deletions
|
|
@ -1,15 +1,12 @@
|
|||
@PACKAGE_INIT@
|
||||
|
||||
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()
|
||||
include(CMakeFindDependencyMacro)
|
||||
if(@USE_OPENSSL@)
|
||||
find_dependency(OpenSSL @OPENSSL_VERSION_MAJOR@)
|
||||
endif()
|
||||
if(@USE_ZLIB@)
|
||||
find_dependency(ZLIB @ZLIB_VERSION_MAJOR@)
|
||||
endif()
|
||||
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
||||
check_required_components("@PROJECT_NAME@")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue