diff options
author | Viktor Szakats <commit@vsz.me> | 2023-03-31 18:03:43 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2023-03-31 18:03:43 +0000 |
commit | 0409f633202abf064d070008b5832cc240f110db (patch) | |
tree | ef108651e03c497cb8348fe522a56c7e20b468fa /CMakeLists.txt | |
parent | 3797f1a4ca8fbd1c73a93ea973a3a6931b6e689b (diff) | |
download | curl-0409f633202abf064d070008b5832cc240f110db.tar.gz |
cmake: do not add zlib headers for openssl
Logic copied earlier from wolfSSL. wolfSSL requires zlib headers for its
public headers. OpenSSL does not, so stop adding zlib headers for it.
Follow-up to 1e3319a167d2f32d295603167486e9e88af9bb4e
Closes #10878
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94eb5444b..a14bec566 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -586,7 +586,7 @@ function(CheckQuicSupportInOpenSSL) set(CMAKE_REQUIRED_INCLUDES "${WolfSSL_INCLUDE_DIRS}") set(CMAKE_REQUIRED_LIBRARIES "${WolfSSL_LIBRARIES}") if(HAVE_LIBZ) - list(APPEND CMAKE_REQUIRED_INCLUDES "${ZLIB_INCLUDE_DIRS}") + list(APPEND CMAKE_REQUIRED_INCLUDES "${ZLIB_INCLUDE_DIRS}") # Public wolfSSL headers require zlib headers list(APPEND CMAKE_REQUIRED_LIBRARIES "${ZLIB_LIBRARIES}") endif() if(WIN32) @@ -598,7 +598,6 @@ function(CheckQuicSupportInOpenSSL) set(CMAKE_REQUIRED_INCLUDES "${OPENSSL_INCLUDE_DIR}") set(CMAKE_REQUIRED_LIBRARIES "${OPENSSL_LIBRARIES}") if(HAVE_LIBZ) - list(APPEND CMAKE_REQUIRED_INCLUDES "${ZLIB_INCLUDE_DIRS}") list(APPEND CMAKE_REQUIRED_LIBRARIES "${ZLIB_LIBRARIES}") endif() if(WIN32) |