From ee85e78c3f7926d503df9bcaea5a23ea10ee6bd9 Mon Sep 17 00:00:00 2001 From: Robert Walton Date: Wed, 7 Jul 2021 17:56:36 +0100 Subject: [PATCH] CMake: greentea: Use more specific name for baremetal option Make it obvious the option is used for greentea tests. --- tools/cmake/README.md | 2 +- tools/cmake/mbed_greentea.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cmake/README.md b/tools/cmake/README.md index 50ef9531d3..7ae8223dc5 100644 --- a/tools/cmake/README.md +++ b/tools/cmake/README.md @@ -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//// && cmake ../../../.. -G Ninja -DMBED_TEST_BAREMETAL=ON && cmake --build . + cd cmake_build//// && cmake ../../../.. -G Ninja -DMBED_GREENTEA_TEST_BAREMETAL=ON && cmake --build . ``` Notes: diff --git a/tools/cmake/mbed_greentea.cmake b/tools/cmake/mbed_greentea.cmake index be37e29da7..61759cabfa 100644 --- a/tools/cmake/mbed_greentea.cmake +++ b/tools/cmake/mbed_greentea.cmake @@ -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.") @@ -64,7 +64,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)