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) -- Setup additionnals install directories, separated by a semi-colon ; (library binaries will be copied there)
--InstallDir = "/usr/local/lib64" --InstallDir = "/usr/local/lib64"
-- Adds a project which will recall premake with its original arguments when built -- Adds a project which will recall premake with its original arguments when built (only works on Windows for now)
PremakeProject = true
-- Excludes client-only modules/tools/examples -- Excludes client-only modules/tools/examples
ServerMode = false ServerMode = false

View File

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