Commit d15a83a4 authored by Emil Velikov's avatar Emil Velikov Committed by Chad Versace

cmake: update minimum required MSVC version to 2013 Update 4

Currently we mix variable declarations and code, as allowed in the C99
standard. On the other hand, MSVC 2013 prior to Update 4, seems to have
problems with such code in some corner cases.

Considering it's a free update bump the requirement, and add an explicit
check in the build system. Latter of which shamelessly copied from piglit.

v2: Do not evaluate but check the MSVC variable. (Jose)
Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
Signed-off-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 81b0d70f
......@@ -49,6 +49,11 @@ if(waffle_build_tests)
include(WaffleCMocka)
endif()
# 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(PkgConfig)
# ------------------------------------------------------------------------------
......
......@@ -120,7 +120,7 @@ Download and install the latest version CMake from the official website:
http://cmake.org/
Install Microsoft Visual Studio 2013* or later.
Install Microsoft Visual Studio 2013 Update 4* or later.
Install 'Visual C++' feature.
Download OpenGL Core API and Extension Header Files.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment