aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dawn/006-fix-x11-include-dirs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/dawn/006-fix-x11-include-dirs.patch')
-rw-r--r--vcpkg/ports/dawn/006-fix-x11-include-dirs.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/dawn/006-fix-x11-include-dirs.patch b/vcpkg/ports/dawn/006-fix-x11-include-dirs.patch
new file mode 100644
index 0000000..fdc24d3
--- /dev/null
+++ b/vcpkg/ports/dawn/006-fix-x11-include-dirs.patch
@@ -0,0 +1,23 @@
+diff --git a/src/dawn/native/CMakeLists.txt b/src/dawn/native/CMakeLists.txt
+index 72b92fc8..a1c6016c 100644
+--- a/src/dawn/native/CMakeLists.txt
++++ b/src/dawn/native/CMakeLists.txt
+@@ -926,6 +926,7 @@ if(BUILD_SHARED_LIBS)
+ endif()
+
+ if (DAWN_USE_X11)
++ target_include_directories(dawn_native_objects PRIVATE ${X11_INCLUDE_DIR})
+ target_include_directories(dawn_native PRIVATE ${X11_INCLUDE_DIR})
+ endif()
+
+@@ -999,6 +1000,10 @@ if (DAWN_BUILD_MONOLITHIC_LIBRARY)
+ )
+ endif()
+
++ if (DAWN_USE_X11)
++ target_include_directories(webgpu_dawn_objects PRIVATE ${X11_INCLUDE_DIR})
++ endif()
++
+ # Do the bundling of all the objects and dependencies together.
+ include(BundleLibraries)
+ bundle_libraries(webgpu_dawn ${DAWN_BUILD_MONOLITHIC_LIBRARY} webgpu_dawn_objects)