[cmake] update option to enable CoAP Observe through CMake (#7932)

Change the definition of OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE
through target_compile_detinifions().

Signed-off-by: Luis Ubieda <[email protected]>
This commit is contained in:
Luis Ubieda
2022-07-21 22:25:08 -07:00
committed by GitHub
parent 12933d3f86
commit 1f2a315acf
+1 -1
View File
@@ -134,7 +134,7 @@ endif()
option(OT_COAP_OBSERVE "enable coap observe (RFC7641) api support")
if(OT_COAP_OBSERVE)
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE=1")
target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE=1")
endif()
option(OT_COMMISSIONER "enable commissioner support")