Skip to content
Commit cf6ec868 authored by Lingkai Dong's avatar Lingkai Dong
Browse files

examples: Check RTOS target existence instead of variable



The variables `IOTSDK_CMSIS_RTX` and `IOTSDK_FREERTOS` are for fetching
components. Whether RTX or FreeRTOS is available for use by SDK examples
is better checked by the availability of their CMake targets.

Note: Building different flavors of the same example based on RTOS
availability is for code reuse only. A real user project does not need
to do this if it intends to support one RTOS only.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent 76544da9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment