mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-23 07:00:49 +08:00
zenoh is now part of px4_sitl_default, so the macOS SITL build compiles
it and fails in two places:
- msg: zenoh_topics was a static library with only a header as its
source. macOS ar rejects the resulting empty archive ("no archive
members specified"). It only orders header generation, so make it a
custom target.
- zenoh: POSIX_COMPATIBLE makes zenoh-pico define ZENOH_LINUX ahead of
its own Darwin detection, which pulls in the Linux-only getrandom().
Set it only on non-Apple platforms. Linux is unaffected, and NuttX
(CMAKE_SYSTEM_NAME Generic) keeps it.
Also mark the uORB_Zenoh_Subscriber overrides, consistent with the
publisher.
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Co-authored-by: Farhang <46557204+farhangnaderi@users.noreply.github.com>
Co-authored-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>