[libmagic] Fix build with x64-windows-static triplet (#44566)

This commit is contained in:
PolarGoose
2025-03-28 08:12:15 +01:00
committed by GitHub
parent e73bcc080d
commit 4b45178176
4 changed files with 12 additions and 2 deletions

View File

@@ -32,6 +32,11 @@ if(VCPKG_TARGET_IS_WINDOWS)
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS")
endif()
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -DBUILD_AS_WINDOWS_STATIC_LIBARAY")
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -DBUILD_AS_WINDOWS_STATIC_LIBARAY")
endif()
set(FEATURE_OPTIONS)
macro(enable_feature feature switch)

View File

@@ -1,7 +1,7 @@
{
"name": "libmagic",
"version": "5.46",
"port-version": 1,
"port-version": 2,
"description": "This library can be used to classify files according to magic number tests.",
"homepage": "https://github.com/file/file",
"license": "BSD-2-Clause",

View File

@@ -4854,7 +4854,7 @@
},
"libmagic": {
"baseline": "5.46",
"port-version": 1
"port-version": 2
},
"libmariadb": {
"baseline": "3.4.1",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "41586f5bc835926bf3a4ba4bfc79be735ca581d3",
"version": "5.46",
"port-version": 2
},
{
"git-tree": "64418c4e61811c2e8829f8253c56173a2836bbcd",
"version": "5.46",