[Piglit] [PATCH] cmake: Suppress warning on cmake 2.8.12+

Dylan Baker baker.dylan.c at gmail.com
Sat Dec 28 03:19:43 PST 2013


cmake 2.8.12 Introduced a new policy (CMP0022). Because there are two
policy options and piglit doesn't explicitly ask for one it defaults to
the OLD setting, but spews warnings. By setting OLD explicitly this
warning goes away.

Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6092f99..4949609 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,5 @@
 cmake_minimum_required(VERSION 2.6)
+cmake_policy(SET CMP0022 OLD)
 
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
 
-- 
1.8.5.2



More information about the Piglit mailing list