2022-08-30 04:19:20 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
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
|
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
|
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
|
|
|
|
2021-09-17 01:45:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|