mirror of https://github.com/microsoft/vcpkg.git
[lfreist-hwinfo] Fix GCC build (#52933)
This commit is contained in:
parent
4eb0f7cabb
commit
0c6775e44a
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/linux/disk.cpp b/src/linux/disk.cpp
|
||||
index 59a9ba3..15bb58a 100644
|
||||
--- a/src/linux/disk.cpp
|
||||
+++ b/src/linux/disk.cpp
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <fstream>
|
||||
#include <regex>
|
||||
#include <vector>
|
||||
+#include <sstream>
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
@ -4,6 +4,7 @@ vcpkg_from_github(
|
|||
REF fff0ffb494aa8f8cb8537a35d0032235d6d5b5cc
|
||||
SHA512 9100d6a5e39096d1aa36b462499e3937fd6c829887c7cab23ebb4ac8798f9abc844111df0bc781190780f164e8e2df93b1f0dbbc2d6ac824601910b03009ed3e
|
||||
HEAD_REF main
|
||||
PATCHES fix-gcc-build.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HWINFO_BUILD_SHARED)
|
||||
|
|
@ -14,6 +15,7 @@ vcpkg_cmake_configure(
|
|||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DHWINFO_GPU_OPENCL=OFF
|
||||
-DHWINFO_SHARED=${HWINFO_BUILD_SHARED}
|
||||
-DHWINFO_STATIC=${HWINFO_BUILD_STATIC}
|
||||
)
|
||||
|
|
@ -24,7 +26,7 @@ vcpkg_cmake_config_fixup(
|
|||
CONFIG_PATH "lib/cmake/hwinfo"
|
||||
)
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE" "${SOURCE_PATH}/include/hwinfo/utils/pci.ids.h")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
"name": "lfreist-hwinfo",
|
||||
"version-date": "2025-07-10",
|
||||
"port-version": 1,
|
||||
"description": "hwinfo provides an easy-to-use and modern C++ API for retrieving hardware information of your systems components such as CPU, RAM, GPU, Disks, Mainboard, ...",
|
||||
"homepage": "https://github.com/lfreist/hwinfo",
|
||||
"license": "MIT AND BSD-3-Clause",
|
||||
"supports": "!(uwp | android)",
|
||||
"dependencies": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4730,7 +4730,7 @@
|
|||
},
|
||||
"lfreist-hwinfo": {
|
||||
"baseline": "2025-07-10",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"lib3mf": {
|
||||
"baseline": "2.5.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b65bc2228e0764c20162ff4422a75251b5358177",
|
||||
"version-date": "2025-07-10",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "80d2e44ad00001466a33b67e361bb77ce741b5b5",
|
||||
"version-date": "2025-07-10",
|
||||
|
|
|
|||
Loading…
Reference in New Issue