diff --git a/targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/CMakeLists.txt b/targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/CMakeLists.txt index e6d86c0f12..b34369cf75 100644 --- a/targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/CMakeLists.txt +++ b/targets/TARGET_STM/TARGET_STM32G4/TARGET_STM32G431xB/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (c) 2020 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -if("NUCLEO_G474RE" IN_LIST MBED_TARGET_LABELS) +if("NUCLEO_G431KB" IN_LIST MBED_TARGET_LABELS) add_subdirectory(TARGET_NUCLEO_G431KB) endif()