From 83df24d23c00e438961f3c06889fff4e4984eac0 Mon Sep 17 00:00:00 2001 From: yadda yadda yadda Date: Thu, 4 Jul 2024 03:18:11 +0200 Subject: [PATCH] cmake: add missing lib_lightgbm_swig.so to lightgbmlib.jar on linux (#6515) --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3492289be078..c9ff8a14a653 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -576,6 +576,12 @@ if(USE_SWIG) copy_if_different "${PROJECT_SOURCE_DIR}/lib_lightgbm.so" com/microsoft/ml/lightgbm/linux/x86_64 + COMMAND + "${CMAKE_COMMAND}" + -E + copy_if_different + "${PROJECT_SOURCE_DIR}/lib_lightgbm_swig.so" + com/microsoft/ml/lightgbm/linux/x86_64 COMMAND "${Java_JAR_EXECUTABLE}" -cf lightgbmlib.jar com ) endif()