Disable PremakeProject for non-Windows OSes

This commit is contained in:
Lynix 2017-08-20 21:37:45 +02:00
parent f363420ebe
commit 885804e58a
2 changed files with 2 additions and 3 deletions

View File

@ -16,8 +16,7 @@ Configurations = "Debug,Release" -- "Debug,Release,ReleaseWithDebug"
-- Setup additionnals install directories, separated by a semi-colon ; (library binaries will be copied there)
--InstallDir = "/usr/local/lib64"
-- Adds a project which will recall premake with its original arguments when built
PremakeProject = true
-- Adds a project which will recall premake with its original arguments when built (only works on Windows for now)
-- Excludes client-only modules/tools/examples
ServerMode = false

View File

@ -128,7 +128,7 @@ function NazaraBuild:Execute()
language("C++")
location(_ACTION)
if (self.Config["PremakeProject"]) then
if (self.Config["PremakeProject"] && os.is("windows")) then
local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ')
project("_PremakeProject")
kind("Utility")