Skip to content

Commit

Permalink
Fix native libs other than macos being copied correctly. (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmelchior authored Jan 11, 2024
1 parent 8046324 commit fd54a30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cinterop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ val buildJVMSharedLibs: TaskProvider<Task> by tasks.registering {
* mostly useful on CI.
*/
val copyJVMSharedLibs: TaskProvider<Task> by tasks.registering {
val copyJvmABIs = project.hasProperty("copyJvmABIs") && project.property("copyJvmABIs") == "true"
val copyJvmABIs = project.hasProperty("realm.kotlin.copyNativeJvmLibs") && project.property("realm.kotlin.copyNativeJvmLibs") == "true"
logger.info("Copy native Realm JVM libraries: $copyJvmABIs")
if (copyJvmABIs) {
// copy MacOS pre-built binaries
project.file("$buildDir/realmMacOsBuild/librealmc.dylib")
Expand Down

0 comments on commit fd54a30

Please sign in to comment.