summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2024-02-06 11:09:42 +0100
committerGitHub <noreply@github.com>2024-02-06 11:09:42 +0100
commit8198e4bfede103c11ededa0167b634d0e88c7f77 (patch)
tree7c8b0a9a38e72740384a5961f42cfcc71e710f75
parent9944b71234d96d529cff01a80b52776d974838fd (diff)
parent9c16d1c5b4959bed843bc0f1d065ad25a5e1b778 (diff)
downloadexpat-8198e4bfede103c11ededa0167b634d0e88c7f77.tar.gz
Merge pull request #815 from libexpat/fix-pkg-config-file-for-static-build-on-windows
pkg-config: Add missing `-DXML_STATIC` for Windows (alternative to #805)
-rw-r--r--expat/expat.pc.cmake1
-rw-r--r--expat/expat.pc.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/expat/expat.pc.cmake b/expat/expat.pc.cmake
index da7a0549..56da4137 100644
--- a/expat/expat.pc.cmake
+++ b/expat/expat.pc.cmake
@@ -10,3 +10,4 @@ URL: https://libexpat.github.io/
Libs: -L${libdir} -l$<TARGET_PROPERTY:expat,pkgconfig_$<LOWER_CASE:$<CONFIG>>_output_name>
Libs.private: $<TARGET_PROPERTY:expat,pkgconfig_libm>
Cflags: -I${includedir}
+Cflags.private: -DXML_STATIC
diff --git a/expat/expat.pc.in b/expat/expat.pc.in
index db080653..a53ab118 100644
--- a/expat/expat.pc.in
+++ b/expat/expat.pc.in
@@ -10,3 +10,4 @@ URL: https://libexpat.github.io/
Libs: -L${libdir} -l@PACKAGE_NAME@
Libs.private: @LIBM@
Cflags: -I${includedir}
+Cflags.private: -DXML_STATIC