aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpuid/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpuid/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpuid/portfile.cmake')
-rw-r--r--vcpkg/ports/cpuid/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/cpuid/portfile.cmake b/vcpkg/ports/cpuid/portfile.cmake
new file mode 100644
index 0000000..0b2116e
--- /dev/null
+++ b/vcpkg/ports/cpuid/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO anrieff/libcpuid
+ REF "v${VERSION}"
+ SHA512 6b642418bef40848fa0b61a6798c90121e1d31dceee815946bde621e01f50a8353d4cd22bce864af080e4342e036bab9bfe1f61f99083620885f9e252ce11895
+ HEAD_REF master
+ PATCHES
+ fix-build.patch
+ fix-LNK2019.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DLIBCPUID_ENABLE_DOCS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpuid)
+vcpkg_fixup_pkgconfig()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")