mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-26 16:28:06 +08:00
cmake: NuttX generated vscode launch.json requires DEBUG_DEVICE found
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user