From 1c4a8e7c1112c825abea2338394a1e1725241388 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 18 Nov 2019 11:11:13 -0500 Subject: [PATCH] cmake NuttX fix generated launch.json (vscode debug) --- platforms/nuttx/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/nuttx/CMakeLists.txt b/platforms/nuttx/CMakeLists.txt index 43e92e9514..0b324b45fa 100644 --- a/platforms/nuttx/CMakeLists.txt +++ b/platforms/nuttx/CMakeLists.txt @@ -176,8 +176,8 @@ add_custom_target(weak_symbols configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Debug/gdbinit.in ${PX4_BINARY_DIR}/.gdbinit) # vscode launch.json -# FIXME: hack to skip if px4_io-v2 because it's a build within a build -if(NOT PX4_BUILD MATCHES "px4_io-v2") +# FIXME: hack to skip if px4_io-v2 because it's a built within another build (eg px4_fmu-v5) +if(NOT PX4_BOARD MATCHES "px4_io-v2") if(CONFIG_ARCH_CHIP_MK66FN2M0VMD18) set(DEBUG_DEVICE "MK66FN2M0xxx18") set(DEBUG_SVD_FILE "MK66F18.svd")