2020-03-06 04:34:27 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
2020-05-20 05:47:19 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO anrieff/libcpuid
|
2021-09-17 01:45:05 +08:00
|
|
|
REF 179fbcb713566c2084a1903729b6eebba68a4424 #0.5.1
|
|
|
|
SHA512 76eef8147a9ed2f116ddfd07ab95f76126bee0e23d0e6b5be54d157a1456b769fb698a4799a43c5f81ac12368d76fe8904bff735a698342ad8ee41d43e72645b
|
2020-05-20 05:47:19 +08:00
|
|
|
HEAD_REF master
|
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)
|
2020-03-06 04:34:27 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-03-06 04:34:27 +08:00
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|