2020-03-06 04:34:27 +08:00
|
|
|
vcpkg_from_github(
|
2020-05-20 05:47:19 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO anrieff/libcpuid
|
2024-03-15 03:22:32 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 855dab45ec12b817fb18948442cebc22abaf915a7230e3d1a3f0e2fc7d0e3fe4a39e7c5744be1f4c7e3cb7b082012e6b0b0677a967beba5d404c6c48467eedce
|
2020-05-20 05:47:19 +08:00
|
|
|
HEAD_REF master
|
2022-08-30 04:19:20 +08:00
|
|
|
PATCHES
|
|
|
|
fix-build.patch
|
2020-03-06 04:34:27 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2020-03-06 04:34:27 +08:00
|
|
|
-DENABLE_DOCS=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-03-06 04:34:27 +08:00
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpuid)
|
2022-08-30 04:19:20 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-03-06 04:34:27 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-08-30 04:19:20 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-03-06 04:34:27 +08:00
|
|
|
|
2024-03-15 03:22:32 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|