[Piglit] [PATCH 1/5] cmake: If using Waffle, require waffle >= 1.3
Chad Versace
chad.versace at linux.intel.com
Thu Oct 10 21:33:08 CEST 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 4ec5ddf..ec1e6c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,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 "
@@ -42,6 +42,7 @@ if(PIGLIT_USE_WAFFLE)
endif()
add_definitions(-DPIGLIT_USE_WAFFLE)
+ add_definitions(-DWAFFLE_API_VERSION=0x0103)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WAFFLE_CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WAFFLE_CFLAGS}")
else()
--
1.8.3.1
More information about the Piglit
mailing list