summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-09-18 14:24:10 -0700
committerChad Versace <chad.versace@linux.intel.com>2013-09-18 15:48:09 -0700
commitd4728dd569da4c7fa262dc1cd4bec21277450dd6 (patch)
tree5be1b9221b27ca96ac921d4c374cb84b809f53cf /tests
parentbe064db44281a9bfa0e63595018df84d0c31e5f1 (diff)
waffle: Add feature test macro WAFFLE_API_VERSION
This macro controls the API exposed by Waffle's headers. Use it to guard the new API added in waffle 1.3. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 7a9dd7e..42061a3 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,5 @@
+add_definitions(-DWAFFLE_API_VERSION=${waffle_api_version})
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(waffle_test)