Skip to content

Commit f8e1fb1

Browse files
committed
Fix Firestore builds on non-Apple platforms
settings_ios is only used for Apple platforms, so filter it out. PiperOrigin-RevId: 299209107
1 parent f3f1d02 commit f8e1fb1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

firestore/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
if(APPLE AND NOT ANDROID)
16+
set(settings_apple_SRCS
17+
src/common/settings_ios.mm)
18+
else()
19+
set(settings_apple_SRCS)
20+
endif()
21+
1522
set(common_SRCS
1623
src/common/cleanup.h
1724
src/common/collection_reference.cc
@@ -28,14 +35,14 @@ set(common_SRCS
2835
src/common/query_snapshot.cc
2936
src/common/set_options.cc
3037
src/common/settings.cc
31-
src/common/settings_ios.mm
3238
src/common/snapshot_metadata.cc
3339
src/common/to_string.cc
3440
src/common/to_string.h
3541
src/common/transaction.cc
3642
src/common/util.cc
3743
src/common/util.h
38-
src/common/write_batch.cc)
44+
src/common/write_batch.cc
45+
${settings_apple_SRCS})
3946

4047
set(android_SRCS
4148
src/android/blob_android.cc

0 commit comments

Comments
 (0)