From 3e506204737074c0ebcd4c5405a52d68045c9890 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Thu, 14 Jul 2022 13:28:39 +0200 Subject: [PATCH] Fix case. (might be problematic with custom override of premake module, such as premake-qt). --- modules/codelite/codelite_project.lua | 8 ++++---- modules/vstudio/vs2010_vcxproj.lua | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/codelite/codelite_project.lua b/modules/codelite/codelite_project.lua index ba7f59d1..d4112343 100755 --- a/modules/codelite/codelite_project.lua +++ b/modules/codelite/codelite_project.lua @@ -388,19 +388,19 @@ local dependencies = {} local makefilerules = {} local function addrule(dependencies, makefilerules, config, filename) - if #config.buildcommands == 0 or #config.buildOutputs == 0 then + if #config.buildcommands == 0 or #config.buildoutputs == 0 then return false end - local inputs = table.implode(project.getrelative(cfg.project, config.buildInputs), "", "", " ") + local inputs = table.implode(project.getrelative(cfg.project, config.buildinputs), "", "", " ") if filename ~= "" and inputs ~= "" then filename = filename .. " " end - local outputs = project.getrelative(cfg.project, config.buildOutputs[1]) + local outputs = project.getrelative(cfg.project, config.buildoutputs[1]) local buildmessage = "" if config.buildmessage then buildmessage = "\t@{ECHO} " .. config.buildmessage .. "\n" end - local commands = table.implode(config.buildCommands,"\t","\n","") + local commands = table.implode(config.buildcommands,"\t","\n","") table.insert(makefilerules, os.translateCommandsAndPaths(outputs .. ": " .. filename .. inputs .. "\n" .. buildmessage .. commands, cfg.project.basedir, cfg.project.location)) table.insertflat(dependencies, outputs) return true diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index c5a65ce3..d38ccdb3 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -430,7 +430,7 @@ end function m.buildStep(cfg) - if #cfg.buildCommands > 0 or #cfg.buildOutputs > 0 or #cfg.buildInputs > 0 or cfg.buildMessage then + if #cfg.buildcommands > 0 or #cfg.buildoutputs > 0 or #cfg.buildinputs > 0 or cfg.buildmessage then p.push('') p.callArray(m.elements.buildStep, cfg)