From 26c1810fe23ed1ce6938fd6b39b4009f24e7e5aa Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Thu, 7 Apr 2022 17:37:13 -0500 Subject: [PATCH] Allow libcudfjni to be built as a static library (#10619) This adds the ability for the JNI native libraries to be built as static libraries rather than shared libraries by specifying `-DBUILD_SHARED_LIBS=OFF` when configuring with cmake. This can be useful for external projects that are leveraging the JNI libraries and would like to use an archive that they can link into their shared library. Authors: - Jason Lowe (https://github.com/jlowe) Approvers: - MithunR (https://github.com/mythrocks) URL: https://github.com/rapidsai/cudf/pull/10619 --- java/pom.xml | 3 ++- java/src/main/native/CMakeLists.txt | 28 +++++++++++++++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/java/pom.xml b/java/pom.xml index d2104269c2c..9d94df8474a 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -1,6 +1,6 @@