mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 20:32:47 +08:00
[pugixml] fix dllexport for clang-cl (#25962)
* pugixml fix export macros for !cl * v db
This commit is contained in:
parent
38884e02f5
commit
4335dc2edf
18
ports/pugixml/dllexport.patch
Normal file
18
ports/pugixml/dllexport.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 17f67d1f7..9acaf856f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -110,8 +110,12 @@ if (BUILD_SHARED_LIBS)
|
||||
PUBLIC
|
||||
${PUGIXML_BUILD_DEFINES}
|
||||
${PUGIXML_PUBLIC_DEFINITIONS}
|
||||
+ )
|
||||
+ if(WIN32)
|
||||
+ target_compile_definitions(pugixml-shared
|
||||
PRIVATE
|
||||
- $<$<CXX_COMPILER_ID:MSVC>:PUGIXML_API=__declspec\(dllexport\)>)
|
||||
+ PUGIXML_API=__declspec\(dllexport\))
|
||||
+ endif()
|
||||
target_compile_options(pugixml-shared
|
||||
PRIVATE
|
||||
${msvc-rt-mtd-shared}
|
@ -4,6 +4,8 @@ vcpkg_from_github(
|
||||
REF v1.12.1
|
||||
SHA512 c1a80518e8d7b21f2a15b2023b77e87484f5b7581e68ff508785a60cab53d1689b5508f5a652d6f0d4fbcc91f66d59246fdfe499fd6b0e188c7914ed5919980b
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
dllexport.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "pugixml",
|
||||
"version": "1.12.1",
|
||||
"port-version": 1,
|
||||
"description": "Light-weight, simple and fast XML parser for C++ with XPath support",
|
||||
"homepage": "https://github.com/zeux/pugixml",
|
||||
"license": "MIT",
|
||||
|
@ -5710,7 +5710,7 @@
|
||||
},
|
||||
"pugixml": {
|
||||
"baseline": "1.12.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"pybind11": {
|
||||
"baseline": "2.10.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "0af6c22cb58a218893ca193a5f5d29d7d1753355",
|
||||
"version": "1.12.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "ffaef9b7ddc94c06bf1293ff4f04906960f0de4c",
|
||||
"version": "1.12.1",
|
||||
|
Loading…
Reference in New Issue
Block a user