2022-10-25 02:46:17 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO VowpalWabbit/vowpal_wabbit
|
2023-03-24 10:26:30 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 37c4401e5304c20a7a4c2ffa6102bfa82085c4bbc787c796da295e789996f09472ac4b3e732b0a44016eab6579c2648085b1e67b1df2658257d52f7e46a1b683
|
2022-10-25 02:46:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES cmake_remove_bin_targets.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DVW_INSTALL=ON
|
|
|
|
-DRAPIDJSON_SYS_DEP=ON
|
|
|
|
-DFMT_SYS_DEP=ON
|
|
|
|
-DSPDLOG_SYS_DEP=ON
|
|
|
|
-DVW_BOOST_MATH_SYS_DEP=ON
|
|
|
|
-DVW_ZLIB_SYS_DEP=ON
|
2022-11-11 01:19:03 +08:00
|
|
|
-DVW_EIGEN_SYS_DEP=ON
|
2022-10-25 02:46:17 +08:00
|
|
|
-DVW_BUILD_VW_C_WRAPPER=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2023-03-24 10:26:30 +08:00
|
|
|
-DVW_STRING_VIEW_LITE_SYS_DEP=ON
|
2022-10-25 02:46:17 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-03-24 10:26:30 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2022-10-25 02:46:17 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/VowpalWabbit)
|
2022-10-28 10:26:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|