[cmake] add option to enable secure settings API (#7517)

This commit adds an option to the POSIX platform CMake module to turn
on/off the secure settings API.
This commit is contained in:
jinran-google
2022-03-24 15:37:46 -07:00
committed by GitHub
parent eca7675acb
commit 11e2df8efc
+7
View File
@@ -62,6 +62,13 @@ if(OT_POSIX_MAX_POWER_TABLE)
)
endif()
option(OT_POSIX_SECURE_SETTINGS "enable secure settings" OFF)
if (OT_POSIX_SECURE_SETTINGS)
target_compile_definitions(ot-posix-config
INTERFACE "OPENTHREAD_POSIX_CONFIG_SECURE_SETTINGS_ENABLE=1"
)
endif()
set(OT_POSIX_CONFIG_RCP_BUS "" CACHE STRING "RCP bus type")
if(OT_POSIX_CONFIG_RCP_BUS)
target_compile_definitions(ot-posix-config