2024-06-21 15:13:45 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO microsoft/LightGBM
|
|
|
|
REF v${VERSION}
|
2024-10-11 22:30:44 +08:00
|
|
|
SHA512 f968f984a0881a5eadd898dded367b799b619e3cc80415dec8b623897e84d7e1e1034f20179125354b93759ea1b8a3e334cfa506427442810ef098bc93fd4634
|
2024-06-21 15:13:45 -07:00
|
|
|
PATCHES
|
|
|
|
vcpkg_lightgbm_use_vcpkg_libs.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
gpu USE_GPU
|
2024-08-08 21:39:45 -07:00
|
|
|
openmp USE_OPENMP
|
2024-06-21 15:13:45 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
set(BUILD_STATIC_LIB "OFF")
|
|
|
|
else()
|
|
|
|
set(BUILD_STATIC_LIB "ON")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_STATIC_LIB=${BUILD_STATIC_LIB}
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES lightgbm AUTO_CLEAN)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|