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