vcpkg/ports/vowpal-wabbit/portfile.cmake

34 lines
1.0 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO VowpalWabbit/vowpal_wabbit
REF "${VERSION}"
SHA512 37c4401e5304c20a7a4c2ffa6102bfa82085c4bbc787c796da295e789996f09472ac4b3e732b0a44016eab6579c2648085b1e67b1df2658257d52f7e46a1b683
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
-DVW_EIGEN_SYS_DEP=ON
-DVW_BUILD_VW_C_WRAPPER=OFF
-DBUILD_TESTING=OFF
-DVW_STRING_VIEW_LITE_SYS_DEP=ON
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/VowpalWabbit)
vcpkg_fixup_pkgconfig()