aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-27 09:09:38 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-27 09:09:38 -0700
commit26187d1bed865f472caa2dcd2f154a72f7f6d045 (patch)
tree6cfa38c5db05fb0f458c18cc850a9fc70dbcb972
parent02185b60828ded3f89f2a7f2cf75402d00dde123 (diff)
downloadvcpkg-26187d1bed865f472caa2dcd2f154a72f7f6d045.tar.gz
vcpkg-26187d1bed865f472caa2dcd2f154a72f7f6d045.zip
[qt5-base] Fix pcre2 reference on non-Windows
-rw-r--r--ports/qt5-base/fix-system-pcre2-linux.patch17
-rw-r--r--ports/qt5-base/portfile.cmake1
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/qt5-base/fix-system-pcre2-linux.patch b/ports/qt5-base/fix-system-pcre2-linux.patch
new file mode 100644
index 000000000..c5669a4c9
--- /dev/null
+++ b/ports/qt5-base/fix-system-pcre2-linux.patch
@@ -0,0 +1,17 @@
+diff --git a/src/corelib/configure.json b/src/corelib/configure.json
+index a5a1b66..5a48a05 100644
+--- a/src/corelib/configure.json
++++ b/src/corelib/configure.json
+@@ -163,8 +163,10 @@
+ "builds": {
+ "debug": "-lpcre2-16d",
+ "release": "-lpcre2-16"
+- }
+- }
++ },
++ "condition": "config.win32"
++ },
++ { "libs": "-lpcre2-16", "condition": "!config.win32" }
+ ]
+ },
+ "pps": {
diff --git a/ports/qt5-base/portfile.cmake b/ports/qt5-base/portfile.cmake
index c398b4370..e01365fe9 100644
--- a/ports/qt5-base/portfile.cmake
+++ b/ports/qt5-base/portfile.cmake
@@ -44,6 +44,7 @@ vcpkg_apply_patches(
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/fix-system-pcre2.patch"
"${CMAKE_CURRENT_LIST_DIR}/fix-system-freetype.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/fix-system-pcre2-linux.patch"
)
# This fixes issues on machines with default codepages that are not ASCII compatible, such as some CJK encodings