diff --git a/src/dawn_native/CMakeLists.txt b/src/dawn_native/CMakeLists.txt index ea3684ecb9..8c0c5f6094 100644 --- a/src/dawn_native/CMakeLists.txt +++ b/src/dawn_native/CMakeLists.txt @@ -180,6 +180,10 @@ if (DAWN_USE_X11) find_package(X11 REQUIRED) target_link_libraries(dawn_native PRIVATE ${X11_LIBRARIES}) target_include_directories(dawn_native PRIVATE ${X11_INCLUDE_DIR}) + target_sources(dawn_native PRIVATE + "XlibXcbFunctions.cpp" + "XlibXcbFunctions.h" + ) endif() if (WIN32)