vcpkg/ports/xbyak/portfile.cmake
MonicaLiu be331712a5
[xbyak] Update to 7.7 (#41263)
Co-authored-by: Monica <v-liumonica@microsoft.com>
2024-10-08 16:02:44 -04:00

21 lines
651 B
CMake

string(REGEX REPLACE "^([0-9]+)[.]([1-9])\$" "\\1.0\\2" VERSION_STR "${VERSION}")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO herumi/xbyak
REF "v${VERSION_STR}"
SHA512 d4fc99482762eae57ded3c59b1d753bf54563f4273ec30a03a96d72203812616e26bf6237e369ff363e58f3c127723f97c29d7033c0f3319f606460d2a56e432
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/xbyak")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT")