[CI] Simplify CMake build with modern CMake techniques (#5871)
* [CI] Simplify CMake build * Make sure that plugins can be built * [CI] Install lz4 on Mac
This commit is contained in:
committed by
GitHub
parent
22a31b1faa
commit
0d411b0397
@@ -1,8 +1,8 @@
|
||||
find_package(JNI REQUIRED)
|
||||
|
||||
add_library(xgboost4j SHARED
|
||||
${PROJECT_SOURCE_DIR}/jvm-packages/xgboost4j/src/native/xgboost4j.cpp
|
||||
${XGBOOST_OBJ_SOURCES})
|
||||
${PROJECT_SOURCE_DIR}/jvm-packages/xgboost4j/src/native/xgboost4j.cpp)
|
||||
target_link_libraries(xgboost4j PRIVATE objxgboost)
|
||||
target_include_directories(xgboost4j
|
||||
PRIVATE
|
||||
${JNI_INCLUDE_DIRS}
|
||||
@@ -16,7 +16,4 @@ set_target_properties(
|
||||
xgboost4j PROPERTIES
|
||||
CXX_STANDARD 14
|
||||
CXX_STANDARD_REQUIRED ON)
|
||||
target_link_libraries(xgboost4j
|
||||
PRIVATE
|
||||
${LINKED_LIBRARIES_PRIVATE}
|
||||
${JAVA_JVM_LIBRARY})
|
||||
target_link_libraries(xgboost4j PRIVATE ${JAVA_JVM_LIBRARY})
|
||||
|
||||
Reference in New Issue
Block a user