From 89fd18b48e547f80a91a0266c1f2b5356bf088b0 Mon Sep 17 00:00:00 2001 From: Aliaksandr Averchanka Date: Tue, 27 Jan 2026 11:57:48 +0300 Subject: [PATCH] nghttp2: provide common cm3p headers --- Utilities/cm3p/nghttp2/nghttp2.h | 11 +++++++++++ Utilities/cmThirdParty.h.in | 1 + Utilities/cmnghttp2/lib/includes/nghttp2/nghttp2.h | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Utilities/cm3p/nghttp2/nghttp2.h diff --git a/Utilities/cm3p/nghttp2/nghttp2.h b/Utilities/cm3p/nghttp2/nghttp2.h new file mode 100644 index 0000000000..581ec17f5b --- /dev/null +++ b/Utilities/cm3p/nghttp2/nghttp2.h @@ -0,0 +1,11 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file LICENSE.rst or https://cmake.org/licensing for details. */ +#pragma once + +/* Use the nghttp2 library configured for CMake. */ +#include "cmThirdParty.h" +#ifdef CMAKE_USE_SYSTEM_NGHTTP2 +# include // IWYU pragma: export +#else +# include // IWYU pragma: export +#endif diff --git a/Utilities/cmThirdParty.h.in b/Utilities/cmThirdParty.h.in index 5c1d97733c..bc2fd11e0e 100644 --- a/Utilities/cmThirdParty.h.in +++ b/Utilities/cmThirdParty.h.in @@ -16,6 +16,7 @@ #cmakedefine CMAKE_USE_SYSTEM_LIBRHASH #cmakedefine CMAKE_USE_SYSTEM_LIBUV #cmakedefine CMAKE_USE_SYSTEM_ZSTD +#cmakedefine CMAKE_USE_SYSTEM_NGHTTP2 /* Whether CMake is using OpenSSL library. */ #cmakedefine CMAKE_USE_OPENSSL diff --git a/Utilities/cmnghttp2/lib/includes/nghttp2/nghttp2.h b/Utilities/cmnghttp2/lib/includes/nghttp2/nghttp2.h index 65077dd516..3f31b8983e 100644 --- a/Utilities/cmnghttp2/lib/includes/nghttp2/nghttp2.h +++ b/Utilities/cmnghttp2/lib/includes/nghttp2/nghttp2.h @@ -52,7 +52,7 @@ extern "C" { #include #include -#include +#include "nghttp2ver.h" #ifdef NGHTTP2_STATICLIB # define NGHTTP2_EXTERN