nghttp2: provide common cm3p headers

This commit is contained in:
Aliaksandr Averchanka
2026-01-31 15:39:06 -05:00
committed by Brad King
parent 31bb76eafd
commit 89fd18b48e
3 changed files with 13 additions and 1 deletions
+11
View File
@@ -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 <nghttp2/nghttp2.h> // IWYU pragma: export
#else
# include <cmnghttp2/lib/includes/nghttp2/nghttp2.h> // IWYU pragma: export
#endif
+1
View File
@@ -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
@@ -52,7 +52,7 @@ extern "C" {
#include <sys/types.h>
#include <stdarg.h>
#include <nghttp2/nghttp2ver.h>
#include "nghttp2ver.h"
#ifdef NGHTTP2_STATICLIB
# define NGHTTP2_EXTERN