Skip to content

Commit 431ffe6

Browse files
authored
Fix building for Apple devices (#7640)
12d53fc made it so that REALM_BUILD_LIB_ONLY did not disable building the tests, which broke building for platforms where the tests aren't supported.
1 parent 8e4887f commit 431ffe6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
### Internals
2121
* Follow on to ([PR #7300](https://github.com/realm/realm-core/pull/7300)) to allow SDKs to construct a fake user for testing SyncManager::get_user -> App::create_fake_user_for_testing ([PR #7632](https://github.com/realm/realm-core/pull/7632))
22+
* Fix build-apple-device.sh, broken in [#7603](https://github.com/realm/realm-core/pull/7603) ([PR #7640](https://github.com/realm/realm-core/pull/7640)).
2223

2324
----------------------------------------------
2425

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,7 @@ install(FILES tools/cmake/AcquireRealmDependency.cmake
400400
COMPONENT devel
401401
)
402402

403-
if(REALM_BUILD_LIB_ONLY)
404-
set(REALM_EXCLUDE_TESTS EXCLUDE_FROM_ALL)
405-
endif()
406-
407-
if (NOT REALM_NO_TESTS)
403+
if(NOT REALM_BUILD_LIB_ONLY AND NOT REALM_NO_TESTS)
408404
enable_testing()
409405
add_subdirectory(test)
410406
endif()

0 commit comments

Comments
 (0)