This fixes following compile issue on OpenSUSE Tumbleweed:

piglit_wl_framework.c:33:10: fatal error: wayland-client.h:
No such file or directory #include <wayland-client.h>

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106477
Signed-off-by: Sergii Romantsov <sergii.romant...@globallogic.com>
---
 tests/util/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/util/CMakeLists.txt b/tests/util/CMakeLists.txt
index 0508eb0..3fa67d7 100644
--- a/tests/util/CMakeLists.txt
+++ b/tests/util/CMakeLists.txt
@@ -94,6 +94,9 @@ if(PIGLIT_USE_WAFFLE)
                list(APPEND UTIL_GL_SOURCES
                        piglit-framework-gl/piglit_wl_framework.c
                )
+               list(APPEND UTIL_GL_INCLUDES
+                       ${WAYLAND_wayland-client_INCLUDEDIR}
+               )
        endif()
        if(PIGLIT_HAS_X11)
                list(APPEND UTIL_GL_SOURCES
-- 
2.7.4

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to