Skip to content

Commit

Permalink
CMakeLists.txt: add -DPB_NO_PACKED_STRUCTS=1 to the nanopb compiler f…
Browse files Browse the repository at this point in the history
…lags (#8923)
  • Loading branch information
dconeybe committed Nov 3, 2021
1 parent b343ea6 commit 9d998a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nanopb/pb.h>
Expand Down

0 comments on commit 9d998a7

Please sign in to comment.