cmake: Minor fixes for cmake compilation

This commit is contained in:
Piyush Shah
2020-10-08 20:26:37 +05:30
committed by Dong Heng
parent b798ce4d27
commit 0680ff29e7
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@ set(COMPONENT_SRCS "src/httpd_main.c"
"src/httpd_uri.c"
"src/util/ctrl_sock.c")
set(COMPONENT_PRIV_REQUIRES lwip http_parser)
set(COMPONENT_PRIV_REQUIRES lwip)
set(COMPONENT_REQUIRES http_parser)
register_component()

View File

@ -106,3 +106,8 @@ set_source_files_properties(
${SRC}/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c
PROPERTIES COMPILE_FLAGS
-Wno-implicit-fallthrough)
set_source_files_properties(
${SRC}/randombytes/randombytes.c
PROPERTIES COMPILE_FLAGS
-DRANDOMBYTES_DEFAULT_IMPLEMENTATION)