aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qt5-webengine/workaround-protobuf-issue.patch
blob: d23c26e25ab1d02b02cd572a89b66aceb14ae91d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/core/core_chromium.pri b/src/core/core_chromium.pri
index a846f2fbc..102ec9ace 100644
--- a/src/core/core_chromium.pri
+++ b/src/core/core_chromium.pri
@@ -32,6 +32,12 @@ isUniversal() {
 # whenever we are cross compiling.
 qtConfig(webengine-embedded-build): DEFINES += QTWEBENGINE_EMBEDDED_SWITCHES

+# Prepend Chromium's protobuf and abseil-cpp include directories to the include paths
+# to ensure we use chromiums own copies instead of vcpkg provided libraries.
+# See https://github.com/microsoft/vcpkg/issues/12150
+CHROMIUM_SRC_DIR = $$QTWEBENGINE_ROOT/$$getChromiumSrcDir()
+INCLUDEPATH = $$CHROMIUM_SRC_DIR/third_party/protobuf/src $$CHROMIUM_SRC_DIR/third_party/abseil-cpp $$INCLUDEPATH
+
 INCLUDEPATH += $$PWD $$PWD/api

 clang_cl {