From bc43afe93b2c038c2dcf0f9507b5e910a7e4d0c3 Mon Sep 17 00:00:00 2001 From: Roland Grinis Date: Sun, 1 Aug 2021 09:19:00 +0100 Subject: [PATCH] update build --- kmath-noa/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kmath-noa/build.gradle.kts b/kmath-noa/build.gradle.kts index 24b857b3d..84720a256 100644 --- a/kmath-noa/build.gradle.kts +++ b/kmath-noa/build.gradle.kts @@ -125,7 +125,7 @@ val configureCpp by tasks.registering { "-DCMAKE_MAKE_PROGRAM=$ninjaCmd", "-DCMAKE_PREFIX_PATH=$thirdPartyDir/torch/$torchArchive", "-DJAVA_HOME=$javaHome", - "-DBUILD_NOA_KMATH=ON", + "-DBUILD_JNOA=ON", "-DCMAKE_BUILD_TYPE=Release", "-DBUILD_NOA_CUDA=${if (!cudaFound) "ON" else "OFF"}", "-DBUILD_NOA_TESTS=OFF", @@ -151,7 +151,7 @@ val buildCpp by tasks.registering { doLast { exec { workingDir(cppBuildDir) - commandLine(cmakeCmd, "--build", ".", "--config", "Release") + commandLine(cmakeCmd, "--build", ".", "--config", "Release", "--target", "jnoa") } } } @@ -160,9 +160,9 @@ tasks["compileJava"].dependsOn(buildCpp) tasks { withType{ - systemProperty("java.library.path", "$cppBuildDir/kmath") + systemProperty("java.library.path", "$cppBuildDir/jnoa") //systemProperty("java.library.path", - // "${System.getProperty("user.home")}/devspace/noa/cmake-build-release/kmath") + // "${System.getProperty("user.home")}/devspace/noa/cmake-build-release/jnoa") } }