It seems wrong to just assume that all Linux "HAS_WAYLAND".
But, I don't know how the build system can determine whether wayland
support should be included or not.

Signed-off-by: Daniel Kurtz <[email protected]>
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc5b475..b19cf8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,6 +60,7 @@ if(PIGLIT_USE_WAFFLE)
 
        add_definitions(-DPIGLIT_USE_WAFFLE)
        add_definitions(-DWAFFLE_API_VERSION=0x0103)
+       # TODO: probe for wayland support instead of unconditionally defining
        add_definitions(-DPIGLIT_HAS_WAYLAND)
        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WAFFLE_CFLAGS}")
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WAFFLE_CFLAGS}")
-- 
1.8.5.2

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to