Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Firestore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Provide a mechanism for firebase-cpp-sdk to avoid unnecessarily building
# the Objective-C APIs and Tests, which it doesn't use.
option(FIRESTORE_INCLUDE_OBJC "Build the Firestore Objective-C layer" ON)

add_subdirectory(Protos)
add_subdirectory(Source)
add_subdirectory(core)
Expand Down
4 changes: 4 additions & 0 deletions Firestore/Example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if(NOT FIRESTORE_INCLUDE_OBJC)
return()
endif()

add_subdirectory(Benchmarks)

add_subdirectory(App)
Expand Down
4 changes: 4 additions & 0 deletions Firestore/Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if(NOT APPLE)
return()
endif()

if(NOT FIRESTORE_INCLUDE_OBJC)
return()
endif()

file(GLOB headers Public/FirebaseFirestore/*.h)
file(GLOB sources API/*.h API/*.m API/*.mm)

Expand Down