From edec390c7b3343e5da4a8f3edc92558bfd791587 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 26 May 2021 02:42:07 +0200 Subject: [PATCH] CMakeLists.txt formatting --- CMakeLists.txt | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) 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 +)