From 9aa0c85b1817684a601c21dcabe8bfe8e74c3692 Mon Sep 17 00:00:00 2001 From: Denver Coneybeare Date: Wed, 3 Nov 2021 01:18:07 -0400 Subject: [PATCH] CMakeLists.txt: add -DPB_NO_PACKED_STRUCTS=1 to the nanopb compiler flags --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9141422bd5a..29458bf13aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,7 +242,7 @@ add_external_subdirectory(nanopb) target_compile_definitions( protobuf-nanopb-static PUBLIC - -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC + -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC -DPB_NO_PACKED_STRUCTS=1 ) # Enable #include