[Piglit] [PATCH 1/3] cmake: Silence CMP0042 warnings on MacOSX.

Jose Fonseca jfonseca at vmware.com
Tue Mar 24 11:55:07 PDT 2015


---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index db922d8..2208dc7 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
-- 
2.1.0



More information about the Piglit mailing list