mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
nghttp2: provide common cm3p headers
This commit is contained in:
committed by
Brad King
parent
31bb76eafd
commit
89fd18b48e
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user