Skip to content

Commit 55e61ed

Browse files
committed
Make sure the CMake build uses the same Nanopb definitions as the iOS
SDK.
1 parent cd23164 commit 55e61ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firestore/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,11 @@ target_compile_definitions(firebase_firestore
366366
${FIREBASE_FIRESTORE_CPP_DEFINES}
367367
)
368368

369+
# Set the Nanopb preprocessor definitions to match those used by the iOS SDK.
370+
target_compile_definitions(firebase_firestore
371+
PUBLIC -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC -DPB_NO_PACKED_STRUCTS
372+
)
373+
369374
if(ANDROID)
370375
firebase_cpp_proguard_file(firestore)
371376

0 commit comments

Comments
 (0)