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