aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Firestore/CMakeLists.txt30
1 files changed, 16 insertions, 14 deletions
diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt
index fe7d8f4..8d1cd6c 100644
--- a/Firestore/CMakeLists.txt
+++ b/Firestore/CMakeLists.txt
@@ -148,20 +148,22 @@ podspec_framework(
${FIREBASE_SOURCE_DIR}/FirebaseAuthInterop.podspec
)
-# FirebaseAuthInterop has no source files but CMake can't build frameworks that don't
-# have sources. Generate an inconsequential source file so that the library can
-# be linked.
-file(
- WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
- "// generated file for header-only CMake support.
- __attribute__((unused))
- static void FirebaseAuthInteropFakeSymbol() {}
- "
-)
-target_sources(
- FirebaseAuthInterop
- PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
-)
+if(APPLE)
+ # FirebaseAuthInterop has no source files but CMake can't build frameworks
+ # that don't have sources. Generate an inconsequential source file so that
+ # the library can be linked.
+ file(
+ WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
+ "// generated file for header-only CMake support.
+ __attribute__((unused))
+ static void FirebaseAuthInteropFakeSymbol() {}
+ "
+ )
+ target_sources(
+ FirebaseAuthInterop
+ PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
+ )
+endif()
# Superbuild installed results