diff --git a/kmath-gsl/build.gradle.kts b/kmath-gsl/build.gradle.kts index 806400fc1..3fa4223a8 100644 --- a/kmath-gsl/build.gradle.kts +++ b/kmath-gsl/build.gradle.kts @@ -8,12 +8,10 @@ plugins { kotlin { targets.withType { - compilations["main"].apply { - cinterops { - val libgsl by creating { - defFile("src/nativeInterop/cinterop/libgsl.def") - includeDirs { allHeaders("./src/nativeMain/resources/") } - } + compilations["main"].cinterops { + val libgsl by creating { + defFile("src/nativeInterop/cinterop/libgsl.def") + includeDirs { allHeaders("./src/nativeMain/resources/") } } } }