From e9370c658a05d30e5f090c853aa39ea30e3a49b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 31 Mar 2021 11:25:11 +0200 Subject: [PATCH] nuttx cmake: include upload.cmake if it exists (same as on posix) --- platforms/nuttx/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platforms/nuttx/CMakeLists.txt b/platforms/nuttx/CMakeLists.txt index 93c34ffc80..62fdbe3c57 100644 --- a/platforms/nuttx/CMakeLists.txt +++ b/platforms/nuttx/CMakeLists.txt @@ -298,3 +298,7 @@ include(blackmagic) include(jlink) include(profile) include(stack_check) + +if(EXISTS "${PX4_BOARD_DIR}/cmake/upload.cmake") + include(${PX4_BOARD_DIR}/cmake/upload.cmake) +endif()