summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-24 11:50:15 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-24 21:17:40 +0000
commitb5c17f668e04be77b3436e34fc65c4966adb7777 (patch)
tree2379b3b8ef1667216a861c2e75f6e914eee17353
parent3a30f0e125bc5ded323dbd850ef9a2a61d04b71b (diff)
cmake: Silence CMP0042 warnings on MacOSX.
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db922d891..2208dc73b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,6 +10,11 @@ INCLUDE (CheckFunctionExists)
INCLUDE (CheckIncludeFile)
INCLUDE (FindPkgConfig)
+# http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html
+if (POLICY CMP0042)
+ cmake_policy (SET CMP0042 NEW)
+endif()
+
project (piglit)
# Require MSVC 2013 U4