[Piglit] [PATCH 1/8] cmake: If using Waffle, require waffle >= 1.3

Chad Versace chad.versace at linux.intel.com
Thu Dec 19 18:12:32 PST 2013


Subsequent patches will enable creation of forward-compatible and debug
contexts, which arrived in waffle-1.3.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e952e24..3de892c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,7 +33,7 @@ else()
 endif()
 
 if(PIGLIT_USE_WAFFLE)
-	pkg_check_modules(WAFFLE REQUIRED waffle-1>=1.2.2)
+	pkg_check_modules(WAFFLE REQUIRED waffle-1>=1.3.0)
 
 	if(NOT WAFFLE_FOUND)
 		message(FATAL_ERROR "Failed to find Waffle. If Waffle is not "
@@ -43,6 +43,7 @@ if(PIGLIT_USE_WAFFLE)
         endif()
 
 	add_definitions(-DPIGLIT_USE_WAFFLE)
+	add_definitions(-DWAFFLE_API_VERSION=0x0103)
 	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.4



More information about the Piglit mailing list