I tried multiple ways to set this flag including adding the following line to my project's CMakeLists.txt:
Code: Select all
target_compile_options(${COMPONENT_LIB} PUBLIC "-DMYNEWT_VAL_BLE_EXT_ADV=1")
The only way which worked is by including the above line in NimBLE components' CMakeLists.txt (bt). But this is not a good solution since I don't want to modify the IDF files.
Appreciate any help.