cmake: NuttX generated vscode launch.json requires DEBUG_DEVICE found

This commit is contained in:
Daniel Agar 2021-01-14 10:05:01 -05:00
parent 1ee98417f8
commit 420ceb76fc
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,9 @@ if(NOT NUTTX_DIR MATCHES "external")
)
if(DEBUG_SVD_FILE_PATH)
message(STATUS "Found SVD: ${DEBUG_SVD_FILE_PATH}")
endif()
if(DEBUG_DEVICE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Debug/launch.json.in ${PX4_SOURCE_DIR}/.vscode/launch.json @ONLY)
endif()
endif()