cmake: NuttX debug skip SVD print if not found

This commit is contained in:
Daniel Agar 2020-10-29 10:54:34 -04:00
parent 216a0eb3a0
commit d5894bea5c
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ if(NOT NUTTX_DIR MATCHES "external")
LIST_DIRECTORIES false
${CMAKE_SOURCE_DIR}/../cmsis-svd/data/*/${DEBUG_SVD_FILE}
)
if(NOT DEBUG_SVD_FILE MATCHES "unknown")
if(DEBUG_SVD_FILE_PATH)
message(STATUS "Found SVD: ${DEBUG_SVD_FILE_PATH}")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Debug/launch.json.in ${PX4_SOURCE_DIR}/.vscode/launch.json @ONLY)
endif()