]> granicus.if.org Git - esp-idf/commitdiff
nghttp: move HAVE_CONFIG_H compile definition to component
authorRenz Christian Bagaporo <renz@espressif.com>
Wed, 22 May 2019 03:36:03 +0000 (11:36 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 23 May 2019 10:39:31 +0000 (18:39 +0800)
components/nghttp/CMakeLists.txt
tools/cmake/build.cmake

index b1a4b1642111265c2f34204ac08c4465886bacfb..c1c4d809426b35db1f8f7de342da701e93160b80 100644 (file)
@@ -24,3 +24,5 @@ set(COMPONENT_SRCS "nghttp2/lib/nghttp2_buf.c"
                    "port/http_parser.c")
 
 register_component()
+
+target_compile_definitions(${COMPONENT_LIB} PUBLIC "-DHAVE_CONFIG_H")
index 2371c94623961efe1ae87c2dbac4d08ebf433825..af335d3f1e55ad18c09d0c5230f8c7a43ed3eddc 100644 (file)
@@ -91,7 +91,7 @@ function(__build_set_default_build_specifications)
     unset(c_compile_options)
     unset(cxx_compile_options)
 
-    list(APPEND compile_definitions "-DHAVE_CONFIG_H" "-D_GNU_SOURCE")
+    list(APPEND compile_definitions "-D_GNU_SOURCE")
 
     list(APPEND compile_options     "-ffunction-sections"
                                     "-fdata-sections"