mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:13:34 +08:00
mavlink: cmake generate mavlink headers at build time
- mavlink/mavlink is now directly included as a submodule instead of the generated mavlink/c_library_v2 - this also switches to mavlink development.xml by default
This commit is contained in:
@@ -125,7 +125,7 @@ function(px4_add_module)
|
||||
# as well as interface include and libraries
|
||||
foreach(dep ${DEPENDS})
|
||||
get_target_property(dep_type ${dep} TYPE)
|
||||
if (${dep_type} STREQUAL "STATIC_LIBRARY")
|
||||
if((${dep_type} STREQUAL "STATIC_LIBRARY") OR (${dep_type} STREQUAL "INTERFACE_LIBRARY"))
|
||||
target_link_libraries(${MODULE}_original PRIVATE ${dep})
|
||||
else()
|
||||
add_dependencies(${MODULE}_original ${dep})
|
||||
@@ -205,7 +205,7 @@ function(px4_add_module)
|
||||
# as well as interface include and libraries
|
||||
foreach(dep ${DEPENDS})
|
||||
get_target_property(dep_type ${dep} TYPE)
|
||||
if (${dep_type} STREQUAL "STATIC_LIBRARY")
|
||||
if((${dep_type} STREQUAL "STATIC_LIBRARY") OR (${dep_type} STREQUAL "INTERFACE_LIBRARY"))
|
||||
target_link_libraries(${MODULE} PRIVATE ${dep})
|
||||
else()
|
||||
add_dependencies(${MODULE} ${dep})
|
||||
|
||||
Reference in New Issue
Block a user