From 2705260b27bdc8a1f351f3474c6b6b8b38ba75ff Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Fri, 1 Aug 2025 13:54:57 +0100 Subject: [PATCH] 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 --- cmake/flash/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/flash/CMakeLists.txt b/cmake/flash/CMakeLists.txt index 985b7536154..b86c439128c 100644 --- a/cmake/flash/CMakeLists.txt +++ b/cmake/flash/CMakeLists.txt @@ -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 has added # dependencies. This is done using dedicated CMake script, as # `cmake -E {true|false}` is not available until CMake 3.16.