mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 00:23:34 +08:00
fix: add __PX4 to MicroXRCEddsClient submodule
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
@@ -50,8 +50,8 @@ else()
|
||||
|
||||
# Include NuttX headers
|
||||
get_property(include_dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
|
||||
set(c_flags_with_includes "${CMAKE_C_FLAGS}")
|
||||
set(cxx_flags_with_includes "${CMAKE_CXX_FLAGS}")
|
||||
set(c_flags_with_includes "${CMAKE_C_FLAGS} -D__PX4")
|
||||
set(cxx_flags_with_includes "${CMAKE_CXX_FLAGS} -D__PX4")
|
||||
foreach(dir ${include_dirs})
|
||||
set(c_flags_with_includes "${c_flags_with_includes} -I${dir}")
|
||||
set(cxx_flags_with_includes "${cxx_flags_with_includes} -I${dir}")
|
||||
|
||||
Reference in New Issue
Block a user