[Piglit] [PATCH 1/2] cmake: Require MSVC 2013 Update 4.

Jose Fonseca jfonseca at vmware.com
Wed Feb 4 07:08:26 PST 2015


It has importants fixes to C parser.
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 162c4f4..bb1f685 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,9 +12,9 @@ INCLUDE (FindPkgConfig)
 
 project (piglit)
 
-# Require MSVC 2013
-if (${MSVC} AND ${MSVC_VERSION} LESS 1800)
-	message (FATAL_ERROR "Visual Studio 2013 or later required")
+# Require MSVC 2013 U4
+if (${MSVC} AND ${CMAKE_C_COMPILER_VERSION} VERSION_LESS 18.00.31101.0)
+	message (FATAL_ERROR "Visual Studio 2013 Update 4 or later required")
 endif ()
 
 find_package(Threads)
-- 
2.1.0



More information about the Piglit mailing list