mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
gz: init submodule before configuring build
This commit is contained in:
@@ -37,10 +37,11 @@ else()
|
||||
find_package(gz-transport NAMES gz-transport13)
|
||||
endif()
|
||||
|
||||
file(GLOB gz_worlds ${PX4_SOURCE_DIR}/Tools/simulation/gz/worlds/*.sdf)
|
||||
file(GLOB gz_airframes ${PX4_SOURCE_DIR}/ROMFS/px4fmu_common/init.d-posix/airframes/*_gz_*)
|
||||
|
||||
if (gz-transport_FOUND)
|
||||
px4_add_git_submodule(TARGET git_gz PATH "${PX4_SOURCE_DIR}/Tools/simulation/gz")
|
||||
|
||||
file(GLOB gz_worlds ${PX4_SOURCE_DIR}/Tools/simulation/gz/worlds/*.sdf)
|
||||
file(GLOB gz_airframes ${PX4_SOURCE_DIR}/ROMFS/px4fmu_common/init.d-posix/airframes/*_gz_*)
|
||||
if (gz-transport_VERSION VERSION_LESS "15")
|
||||
set(GZ_TRANSPORT_TARGET "gz-transport${gz-transport_VERSION_MAJOR}::core")
|
||||
else()
|
||||
@@ -78,7 +79,6 @@ if (gz-transport_FOUND)
|
||||
target_include_directories(modules__simulation__gz_bridge PUBLIC px4_gz_msgs)
|
||||
target_link_libraries(modules__simulation__gz_bridge PUBLIC px4_gz_msgs)
|
||||
|
||||
px4_add_git_submodule(TARGET git_gz PATH "${PX4_SOURCE_DIR}/Tools/simulation/gz")
|
||||
include(ExternalProject)
|
||||
ExternalProject_Add(gz
|
||||
SOURCE_DIR ${PX4_SOURCE_DIR}/Tools/simulation/gz
|
||||
|
||||
Reference in New Issue
Block a user