From 0680ff29e7899b58344a7aa31c1ff6f527015d91 Mon Sep 17 00:00:00 2001 From: Piyush Shah Date: Thu, 8 Oct 2020 20:26:37 +0530 Subject: [PATCH] cmake: Minor fixes for cmake compilation --- components/esp_http_server/CMakeLists.txt | 3 ++- components/libsodium/CMakeLists.txt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/esp_http_server/CMakeLists.txt b/components/esp_http_server/CMakeLists.txt index 092eb316..87803467 100644 --- a/components/esp_http_server/CMakeLists.txt +++ b/components/esp_http_server/CMakeLists.txt @@ -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() diff --git a/components/libsodium/CMakeLists.txt b/components/libsodium/CMakeLists.txt index 2c876852..3d55a991 100644 --- a/components/libsodium/CMakeLists.txt +++ b/components/libsodium/CMakeLists.txt @@ -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)