From 0b74076265edda2ac34cb9c4addcfeea7277d3a2 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 19 Oct 2020 12:42:22 -0400 Subject: [PATCH] msg: only include orb_test messages if PX4_TESTING enabled --- msg/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/msg/CMakeLists.txt b/msg/CMakeLists.txt index c017a78eea..1a78bc573b 100644 --- a/msg/CMakeLists.txt +++ b/msg/CMakeLists.txt @@ -86,9 +86,6 @@ set(msg_files offboard_control_mode.msg onboard_computer_status.msg optical_flow.msg - orb_test.msg - orb_test_large.msg - orb_test_medium.msg orbit_status.msg parameter_update.msg ping.msg @@ -178,6 +175,14 @@ if(NOT px4_constrained_flash_build) ) endif() +if(PX4_TESTING) + list(APPEND msg_files + orb_test.msg + orb_test_large.msg + orb_test_medium.msg + ) +endif() + list(SORT msg_files) set(deprecated_msgs