diff options
author | rsgowman <rgowman@google.com> | 2018-03-27 13:43:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 13:43:17 -0400 |
commit | a335d78a62c213b1ae6465bad28aaedfafd828bc (patch) | |
tree | c510f544c6c3868f5f93f6d3a55cd6fa3728d2a1 /Firestore/Protos | |
parent | 22c226af3f5570514d3d13d82a399577ecd7d280 (diff) |
Only add nanopb proto headers to the -I path when depending on the nanopb protos. (#982)
This is motivated by wanting to use libprotobuf in the project too, but
it's also sensible by itself.
Diffstat (limited to 'Firestore/Protos')
-rw-r--r-- | Firestore/Protos/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Firestore/Protos/CMakeLists.txt b/Firestore/Protos/CMakeLists.txt index f20f702..de33491 100644 --- a/Firestore/Protos/CMakeLists.txt +++ b/Firestore/Protos/CMakeLists.txt @@ -43,3 +43,10 @@ target_compile_definitions( firebase_firestore_protos_nanopb PUBLIC -DPB_FIELD_16BIT ) + +# TODO(rsgowman): this may be worth moving into cc_library, possibly via an +# INCLUDE_DIRS or similar. +target_include_directories( + firebase_firestore_protos_nanopb PUBLIC + ${FIREBASE_SOURCE_DIR}/Firestore/Protos/nanopb +) |