cmake: deprecate the flash debug debugserver attach rtt targets

These call west right now, tell the user to call west directly instead.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri
2025-08-01 13:54:57 +01:00
committed by Johan Hedberg
parent ee5b5f30fe
commit 2705260b27

View File

@@ -188,6 +188,7 @@ foreach(target flash debug debugserver attach rtt)
if(WEST)
add_custom_target(${target}
cmake -E echo "WARNING: CMake ${target} target is deprecated, call west directly instead"
# This script will print an error message and fail if <target> has added
# dependencies. This is done using dedicated CMake script, as
# `cmake -E {true|false}` is not available until CMake 3.16.