[Piglit] [PATCH 09/10] CMakeLists: probe for wayland support instead of unconditionally defining
Daniel Kurtz
djkurtz at chromium.org
Wed Jan 15 03:10:04 PST 2014
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 <djkurtz at chromium.org>
---
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
More information about the Piglit
mailing list