From 4d582263f0e3438b35da98e62de63a1c3421d0b4 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 28 Aug 2023 15:30:00 +0200 Subject: [PATCH] Reorganising build.gradle for CUDA 12 Signed-off-by: brian --- cavis-native/cavis-native-jcublas/build.gradle | 3 +-- cavis-native/cavis-native-lib/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cavis-native/cavis-native-jcublas/build.gradle b/cavis-native/cavis-native-jcublas/build.gradle index 990fe5ede..fab5c31d0 100644 --- a/cavis-native/cavis-native-jcublas/build.gradle +++ b/cavis-native/cavis-native-jcublas/build.gradle @@ -20,8 +20,7 @@ dependencies { implementation group: "org.bytedeco", name: "javacpp", classifier: buildTarget implementation projects.cavisNative.cavisNativeCudaPresets - - //implementation name: "cavis-native:cavis-native-lib", configuration: "cuda" + implementation projects.cavisNative.cavisNativeLib implementation(project(":cavis-native:cavis-native-lib")) { capabilities { requireCapability("${project.group}:cavis-native-lib-cuda-support:${project.version}") diff --git a/cavis-native/cavis-native-lib/CMakeLists.txt b/cavis-native/cavis-native-lib/CMakeLists.txt index 05584fb76..271c5f3bd 100644 --- a/cavis-native/cavis-native-lib/CMakeLists.txt +++ b/cavis-native/cavis-native-lib/CMakeLists.txt @@ -25,6 +25,7 @@ set(FLATBUFFERS_BUILD_FLATC "OFF" CACHE STRING "Hack to disable flatc build" FOR set(CMAKE_CXX_STANDARD 14) set(THREADS_PREFER_PTHREAD_FLAG ON) +find_package(Threads REQUIRED) #/////////////////////////////////////////////////////////////////////////////// # genCompilation: Generates cpp, cu files