From 9efe7344f5c833d7ff18810ecb60d4ec0f6906a0 Mon Sep 17 00:00:00 2001 From: TheSomeMan Date: Fri, 27 Sep 2024 15:49:29 +0700 Subject: [PATCH] Add RI_ADV_EXTENDED_ENABLED=1 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2754c1c..a2114cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,9 @@ idf_component_register( ruuvi.endpoints.c ) +target_compile_definitions(${COMPONENT_LIB} PRIVATE RI_ADV_EXTENDED_ENABLED=1) +target_compile_definitions(__idf_ruuvi.endpoints.c PRIVATE RI_ADV_EXTENDED_ENABLED=1) + else() project(ruuvi_comm_tester) @@ -68,6 +71,7 @@ set_target_properties(${ProjectId} PROPERTIES target_compile_definitions(${ProjectId} PUBLIC _DEFAULT_SOURCE + RI_ADV_EXTENDED_ENABLED=1 ) target_compile_options(${ProjectId} PUBLIC