diff --git a/components/nghttp/CMakeLists.txt b/components/nghttp/CMakeLists.txt index 1c9ba17a2..f97cc7731 100644 --- a/components/nghttp/CMakeLists.txt +++ b/components/nghttp/CMakeLists.txt @@ -24,6 +24,7 @@ set(srcs "port/http_parser.c") idf_component_register(SRCS "${srcs}" - INCLUDE_DIRS port/include nghttp2/lib/includes) + INCLUDE_DIRS port/include nghttp2/lib/includes + PRIV_INCLUDE_DIRS private_include) target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DHAVE_CONFIG_H") diff --git a/components/nghttp/component.mk b/components/nghttp/component.mk index 2a69cd5e1..10d0bdefb 100644 --- a/components/nghttp/component.mk +++ b/components/nghttp/component.mk @@ -4,6 +4,8 @@ COMPONENT_ADD_INCLUDEDIRS := port/include nghttp2/lib/includes +COMPONENT_PRIV_INCLUDEDIRS := private_include + COMPONENT_SRCDIRS := nghttp2/lib port COMPONENT_SUBMODULES := nghttp2 diff --git a/components/nghttp/port/include/config.h b/components/nghttp/private_include/config.h similarity index 100% rename from components/nghttp/port/include/config.h rename to components/nghttp/private_include/config.h