mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 13:31:27 +08:00
Replace the ExternalProject_Add-based fetch of PX4/PX4-OpticalFlow with a proper git submodule at src/modules/simulation/gz_plugins/optical_flow/PX4-OpticalFlow, matching how every other external C++ dependency is integrated in PX4 (mavlink, gps/devices, Micro-XRCE-DDS-Client, libevents, heatshrink, etc.). The previous approach cloned the repo over the network on every clean build, pinned to GIT_TAG master (unreproducible), and had generated a string of follow-up PRs over the last year chasing ExternalProject quirks (install paths, macOS .dylib vs .so, permissions). The plugin now consumes the upstream OpticalFlow target directly via add_subdirectory and px4_add_git_submodule. The upstream repo predates PX4's strict warning policy, so the OpticalFlow and klt_feature_tracker targets get -Wno-error plus a few specific -Wno-* flags and -fvisibility=default to build cleanly inside the PX4 tree. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
5.0 KiB
5.0 KiB