summaryrefslogtreecommitdiff
path: root/Utilities/cmnghttp2
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-12-24 05:04:14 +0330
committerAli Mohammad Pur <ali.mpfard@gmail.com>2022-01-06 21:32:59 +0330
commit99acfe41f54cd91c20bd6e7a416d85a668118604 (patch)
tree3b13e7f4f66d83a3170f193f92062628e5a4d304 /Utilities/cmnghttp2
parent13e71b7c3ec9351f0c25656e72c1c0199ddf771c (diff)
downloadcmake-99acfe41f54cd91c20bd6e7a416d85a668118604.tar.gz
cmnghttp2: check for HAVE_SIZEOF_SSIZE_T and not HAVE_SSIZE_T
The `check_type_size(ssize_t SIZEOF_SSIZE_T` call in cmcurl (referenced by the comment above) defines `HAVE_SIZEOF_SSIZE_T` and not `HAVE_SSIZE_T`. The `HAVE_SSIZE_T` variable *might* get defined, but via the `CHECK_TYPE_SIZE(ssize_t SSIZE_T)` call in cmlibarchive, which would be configured *after* cmnghttp2, and so the first configure would lead to an invalid `cmnghttp2/config.h` file.
Diffstat (limited to 'Utilities/cmnghttp2')
-rw-r--r--Utilities/cmnghttp2/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmnghttp2/CMakeLists.txt b/Utilities/cmnghttp2/CMakeLists.txt
index 8b5e8338f8..7f58f1c232 100644
--- a/Utilities/cmnghttp2/CMakeLists.txt
+++ b/Utilities/cmnghttp2/CMakeLists.txt
@@ -7,10 +7,10 @@ elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
endif()
# Re-use some check result cache entries from cmcurl:
-# * HAVE_ARPA_INET_H
-# * HAVE_NETINET_IN_H
-# * HAVE_SSIZE_T
-if(NOT HAVE_SSIZE_T)
+# * HAVE_ARPA_INET_H (referenced in cmakeconfig.h.in)
+# * HAVE_NETINET_IN_H (referenced in cmakeconfig.h.in)
+# * HAVE_SIZEOF_SSIZE_T (referenced here)
+if(NOT HAVE_SIZEOF_SSIZE_T)
set(ssize_t KWIML_INT_intptr_t)
endif()
configure_file(cmakeconfig.h.in config.h)