cmake NuttX fix generated launch.json (vscode debug)

This commit is contained in:
Daniel Agar
2019-11-18 11:11:13 -05:00
parent 82fac4a0a7
commit 1c4a8e7c11

View File

@@ -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")