CMake: greentea: Use more specific name for baremetal option

Make it obvious the option is used for greentea tests.
pull/14892/head
Robert Walton 2021-07-07 17:56:36 +01:00
parent 40154ee2b1
commit 00dbf4c71d
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ Install prerequisites suggested in the previous section and follow the below ste
```
Or build the test binary with the baremetal profile
```
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_TEST_BAREMETAL=ON && cmake --build .
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_GREENTEA_TEST_BAREMETAL=ON && cmake --build .
```
Notes:

View File

@ -1,7 +1,7 @@
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
option(MBED_TEST_BAREMETAL OFF)
option(MBED_GREENTEA_TEST_BAREMETAL "Select baremetal greentea tests" OFF)
set(MBED_HTRUN_ARGUMENTS "" CACHE STRING "Argument list to forward to htrun.")
@ -66,7 +66,7 @@ macro(mbed_greentea_add_test)
${MBED_GREENTEA_TEST_SOURCES}
)
if(MBED_TEST_BAREMETAL)
if(MBED_GREENTEA_TEST_BAREMETAL)
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-baremetal)
else()
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)