Skip to content

Commit

Permalink
Enable REALM_ENABLE_GEOSPATIAL, geoWithin on points for SPM Install…
Browse files Browse the repository at this point in the history
…ation (#7032)
  • Loading branch information
dianaafanador3 authored Oct 6, 2023
1 parent a93be0a commit 4d26656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var cxxSettings: [CXXSetting] = [
.define("REALM_ENABLE_ASSERTIONS", to: "1"),
.define("REALM_ENABLE_ENCRYPTION", to: "1"),
.define("REALM_ENABLE_SYNC", to: "1"),
.define("REALM_ENABLE_GEOSPATIAL", to: "0"),
.define("REALM_ENABLE_GEOSPATIAL", to: "1"),

.define("REALM_VERSION_MAJOR", to: String(versionCompontents[0])),
.define("REALM_VERSION_MINOR", to: String(versionCompontents[1])),
Expand Down Expand Up @@ -71,6 +71,7 @@ let notSyncServerSources: [String] = [
"realm/disable_sync_to_disk.cpp",
"realm/error_codes.cpp",
"realm/exceptions.cpp",
"realm/geospatial.cpp",
"realm/global_key.cpp",
"realm/group.cpp",
"realm/group_writer.cpp",
Expand Down Expand Up @@ -395,14 +396,13 @@ let package = Package(
] + cxxSettings) as [CXXSetting]),
.target(
name: "RealmCore",
dependencies: ["Bid"],
dependencies: ["Bid", "s2geometry"],
path: "src",
exclude: ([
"CMakeLists.txt",
"external",
"realm/CMakeLists.txt",
"realm/exec",
"realm/geospatial.cpp",
"realm/object-store/CMakeLists.txt",
"realm/object-store/c_api",
"realm/object-store/impl/epoll",
Expand Down
2 changes: 1 addition & 1 deletion tools/build-cocoa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [[ -n $BUILD ]]; then
-D CMAKE_SYSTEM_NAME=Darwin \
-D REALM_VERSION="${VERSION}" \
-D REALM_BUILD_LIB_ONLY=ON \
-D REALM_ENABLE_GEOSPATIAL=OFF \
-D REALM_ENABLE_GEOSPATIAL=ON \
-D CPACK_SYSTEM_NAME=macosx \
-D CPACK_PACKAGE_DIRECTORY=.. \
-D CMAKE_OSX_ARCHITECTURES='x86_64;arm64' \
Expand Down

0 comments on commit 4d26656

Please sign in to comment.