From d5103d71b90d808ac75186050618466038218ff0 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 5 Nov 2024 05:43:31 +0100 Subject: [PATCH] simulator_mavlink: include headers from dialect specified for build (#23844) Without this change the configured dialect would not get included correctly in the simulator_mavlink module, only in the main mavlink module. Configured using e.g. CONFIG_MAVLINK_DIALECT="development" in e.g. boards/px4/sitl/default.px4board file. --- src/modules/simulation/simulator_mavlink/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/simulation/simulator_mavlink/CMakeLists.txt b/src/modules/simulation/simulator_mavlink/CMakeLists.txt index fc4fa94aa4..f5f39d7106 100644 --- a/src/modules/simulation/simulator_mavlink/CMakeLists.txt +++ b/src/modules/simulation/simulator_mavlink/CMakeLists.txt @@ -40,9 +40,7 @@ px4_add_module( -Wno-address-of-packed-member # TODO: fix in c_library_v2 INCLUDES ${CMAKE_BINARY_DIR}/mavlink - ${CMAKE_BINARY_DIR}/mavlink/development - ${CMAKE_BINARY_DIR}/mavlink/common - ${CMAKE_BINARY_DIR}/mavlink/standard + ${CMAKE_BINARY_DIR}/mavlink/${CONFIG_MAVLINK_DIALECT} SRCS SimulatorMavlink.cpp SimulatorMavlink.hpp