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.
This commit is contained in:
Matthias Grob
2024-11-05 05:43:31 +01:00
committed by GitHub
parent c199a284f5
commit d5103d71b9
@@ -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