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)