From ef31cfcd654da7659280b1f2e99e1d06efd468b2 Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Sun, 4 Oct 2020 13:19:49 +0700 Subject: [PATCH] Simplify build-script --- kmath-gsl/build.gradle.kts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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/") } } } }