Skip to content

Commit 80cbb08

Browse files
committed
aaa
1 parent 7afbc37 commit 80cbb08

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

depends/common/libxml2/0003-fix_cmakelist.patch

+18-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From 274c9be77c4761275a62596c6a3c0f6258a41dbd Mon Sep 17 00:00:00 2001
1+
From 354c9094761d24fe6fbed516541d501cb3446b3e Mon Sep 17 00:00:00 2001
22
From: Alwin Esch <[email protected]>
3-
Date: Sun, 24 Mar 2024 14:17:46 +0100
3+
Date: Sun, 24 Mar 2024 15:52:48 +0100
44
Subject: [PATCH 3/3] fix_cmakelist
55

66
---
7-
CMakeLists.txt | 8 ++++----
8-
1 file changed, 4 insertions(+), 4 deletions(-)
7+
CMakeLists.txt | 14 +++++++++-----
8+
1 file changed, 9 insertions(+), 5 deletions(-)
99

1010
diff --git a/CMakeLists.txt b/CMakeLists.txt
11-
index 85bcab3..cfaf5fb 100644
11+
index 85bcab3..38d022a 100644
1212
--- a/CMakeLists.txt
1313
+++ b/CMakeLists.txt
1414
@@ -609,12 +609,12 @@ endif()
@@ -42,6 +42,19 @@ index 85bcab3..cfaf5fb 100644
4242
NAMESPACE LibXml2::
4343
FILE libxml2-export.cmake
4444
COMPONENT development
45+
@@ -663,7 +663,11 @@ list(JOIN XML_PRIVATE_LIBS " " XML_PRIVATE_LIBS)
46+
47+
set(XML_INCLUDEDIR "-I\${includedir}/libxml2")
48+
set(XML_LIBDIR "-L\${libdir}")
49+
-set(XML_LIBS "-lxml2")
50+
+if(NOT MSVC)
51+
+ set(XML_LIBS "-lxml2")
52+
+else()
53+
+ set(XML_LIBS "-llibxml2")
54+
+endif()
55+
56+
if(BUILD_SHARED_LIBS)
57+
set(XML_PC_PRIVATE ".private")
4558
--
4659
2.44.0.windows.1
4760

0 commit comments

Comments
 (0)