diff --git a/multiplatform-crypto-delegated/build.gradle.kts b/multiplatform-crypto-delegated/build.gradle.kts index 3adaf4e..1a99836 100644 --- a/multiplatform-crypto-delegated/build.gradle.kts +++ b/multiplatform-crypto-delegated/build.gradle.kts @@ -191,9 +191,10 @@ kotlin { targets.withType { println("Target $name") compilations.getByName("main") { - println("Setting cinterop for $name") + defaultSourceSet.dependsOn(nativeMain) if (this@withType.name.contains("ios").not()) { + println("Setting cinterop for $this@withType.name") val libsodiumCinterop by cinterops.creating { defFile(project.file("src/nativeInterop/cinterop/libsodium.def")) compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/")