From b2879f2eed9415e958c928a1ae1fd008afdfeded Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Sun, 3 Jan 2016 15:01:55 +0100 Subject: [PATCH] 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. --- premake5.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 9b8c90a4..6b7c1188 100644 --- a/premake5.lua +++ b/premake5.lua @@ -55,9 +55,15 @@ solution "iw4x" language "C++" files { "./src/**.hpp", "./src/**.cpp" } includedirs { "%{prj.location}" } - toolset "msc" -- only support Microsoft's compiler 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" defines { "NDEBUG" } flags { "MultiProcessorCompile", "Symbols" }