diff --git a/CMakeLists.txt b/CMakeLists.txt index cd6e87c..2dfbb58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,16 +6,29 @@ set(sources src/asyncudplistener.cpp ) -idf_component_register(INCLUDE_DIRS - src - SRCS - ${headers} - ${sources} - REQUIRES - cpputils - espchrono - espcpputils - espwifistack +set(dependencies + cpputils + espchrono + espcpputils + espwifistack ) -target_compile_options(${COMPONENT_TARGET} PRIVATE -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-field-initializers) +idf_component_register( + INCLUDE_DIRS + src + SRCS + ${headers} + ${sources} + REQUIRES + ${dependencies} +) + +target_compile_options(${COMPONENT_TARGET} + PRIVATE + -fstack-reuse=all + -fstack-protector-all + -Wno-unused-function + -Wno-deprecated-declarations + -Wno-missing-field-initializers + -Wno-parentheses +)