From ceed46c821adb6f2f8c70be25d4d3d6a8daa15c7 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 26 Apr 2021 12:39:42 +0200 Subject: [PATCH] Fixes with new optional dependencies --- CMakeLists.txt | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d99fbbd..7f92eed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,15 +6,21 @@ set(sources src/asynchttprequest.cpp ) -idf_component_register(INCLUDE_DIRS - src - SRCS - ${headers} - ${sources} - REQUIRES - cpputils - espchrono - espcpputils +set(dependencies + cpputils + espchrono + espcpputils + esp_http_client +) + +idf_component_register( + INCLUDE_DIRS + src + SRCS + ${headers} + ${sources} + REQUIRES + ${dependencies} ) target_compile_options(${COMPONENT_TARGET} PRIVATE -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-field-initializers)