premake5: Disallow Microsoft toolsets older than Visual Studio 2013.

We only explicitly allow toolsets that are tested and compiled against - here it's Visual Studio 2013 and 2015.
This commit is contained in:
/dev/urandom 2016-01-03 15:01:55 +01:00
parent b06ca535ff
commit b2879f2eed
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -55,9 +55,15 @@ solution "iw4x"
language "C++" language "C++"
files { "./src/**.hpp", "./src/**.cpp" } files { "./src/**.hpp", "./src/**.cpp" }
includedirs { "%{prj.location}" } includedirs { "%{prj.location}" }
toolset "msc" -- only support Microsoft's compiler
architecture "x32" architecture "x32"
-- Allow newer Microsoft toolsets but fall back to VS2013
if _ACTION == "vs2015" then
toolset "msc-140"
else
toolset "msc-120"
end
configuration "Normal" configuration "Normal"
defines { "NDEBUG" } defines { "NDEBUG" }
flags { "MultiProcessorCompile", "Symbols" } flags { "MultiProcessorCompile", "Symbols" }