vcpkg/ports/hyperscan/portfile.cmake
MonicaLiu e2578269d7
[hyperscan] Update to 5.4.2 (#30979)
* update hyperscan

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-04-20 16:47:06 -07:00

28 lines
743 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO intel/hyperscan
REF "v${VERSION}"
SHA512 328f21133161d16b36ebdc7f8b80a7afe7ca9e7e7433348e9bfa9acb5f3641522e8314beea1b219891f4e95f1392ff8036ebb87780fe808b8b4bd15a535e9509
HEAD_REF master
PATCHES
0001-remove-Werror.patch
)
vcpkg_find_acquire_program(PYTHON3)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}"
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_fixup_pkgconfig()