Skip to content

Commit

Permalink
fix bugs in building Java Wrapper in Windows env
Browse files Browse the repository at this point in the history
'CP' is not a valid command in native Windows, which will cause failure in building Java Wrapper. Use 'COPY' instead and correct the format of file path correspondingly
  • Loading branch information
xuchuanyin authored Jul 12, 2023
1 parent 7140396 commit e320ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ if(USE_SWIG)
TARGET _lightgbm_swig
POST_BUILD
COMMAND "${Java_JAVAC_EXECUTABLE}" -d . java/*.java
COMMAND cp "${PROJECT_SOURCE_DIR}/Release/*.dll" com/microsoft/ml/lightgbm/windows/x86_64
COMMAND copy "..\\Release\\*.dll" "com\\microsoft\\ml\\lightgbm\\windows\\x86_64"
COMMAND "${Java_JAR_EXECUTABLE}" -cf lightgbmlib.jar com
)
endif()
Expand Down

0 comments on commit e320ae5

Please sign in to comment.