Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ios_pod/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ function(setup_pod_headers target_name)
# Add pod name twice as some frameworks moved includes inside a folder with
# the pod name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be good to add a comment along the lines of:
Link the Pods publicly, so that dependent libraries can access the necessary header files as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE

target_include_directories(${target_name}
PRIVATE
# Link the Pods publicly, so that dependent libraries can access the necessary header files as well.
# Same for the below workaround.
PUBLIC
${FIREBASE_POD_HEADER_DIR}/${pod}
${FIREBASE_POD_HEADER_DIR}/${pod}/${pod}
)
Expand All @@ -90,7 +92,7 @@ function(setup_pod_headers target_name)
# we need to include the top-level Private directory as a header path. This only affects Firestore at the moment, as
# no other C++ library includes a private Pod header.
target_include_directories(${target_name}
PRIVATE
PUBLIC
${FIREBASE_POD_PRIVATE_HEADER_DIR}/
${FIREBASE_POD_PRIVATE_HEADER_DIR}/${pod}
${FIREBASE_POD_PRIVATE_HEADER_DIR}/${pod}/${pod}
Expand Down