Fix double-promotion warning in gz_msgs on macOS (#26548)

Protobuf-generated code in gz_msgs triggers -Wdouble-promotion warnings
from the Abseil library. Since this is external code we cannot modify,
disable the warning for this specific target.

Fixes #26533
This commit is contained in:
Cavan O'Horo
2026-02-21 18:25:00 -09:00
committed by GitHub
parent 4880bd5d8c
commit 039ac8c4c1
@@ -18,6 +18,9 @@ if (Protobuf_FOUND)
${PROTO_HDRS}
)
# Disable double-promotion warning for protobuf-generated code
target_compile_options(px4_gz_msgs PRIVATE -Wno-double-promotion)
target_include_directories(px4_gz_msgs
PUBLIC
${CMAKE_CURRENT_BINARY_DIR}