Merge pull request #1430 from Enhex/fix_codelite_command
fixed adding LD_LIBRARY_PATH to the executable run command.
This commit is contained in:
commit
5d0b64c175
@ -268,20 +268,9 @@
|
|||||||
local pauseexec = iif(prj.kind == "ConsoleApp", "yes", "no")
|
local pauseexec = iif(prj.kind == "ConsoleApp", "yes", "no")
|
||||||
local isguiprogram = iif(prj.kind == "WindowedApp", "yes", "no")
|
local isguiprogram = iif(prj.kind == "WindowedApp", "yes", "no")
|
||||||
local isenabled = iif(cfg.flags.ExcludeFromBuild, "no", "yes")
|
local isenabled = iif(cfg.flags.ExcludeFromBuild, "no", "yes")
|
||||||
local ldPath = ''
|
|
||||||
|
|
||||||
for _, libdir in ipairs(cfg.libdirs) do
|
_x(3, '<General OutputFile="%s" IntermediateDirectory="%s" Command="%s" CommandArguments="%s" UseSeparateDebugArgs="%s" DebugArguments="%s" WorkingDirectory="%s" PauseExecWhenProcTerminates="%s" IsGUIProgram="%s" IsEnabled="%s"/>',
|
||||||
ldPath = ldPath .. ":" .. project.getrelative(cfg.project, libdir)
|
targetname, objdir, command, cmdargs, useseparatedebugargs, debugargs, workingdir, pauseexec, isguiprogram, isenabled)
|
||||||
end
|
|
||||||
|
|
||||||
if ldPath == nil or ldPath == '' then
|
|
||||||
_x(3, '<General OutputFile="%s" IntermediateDirectory="%s" Command="%s" CommandArguments="%s" UseSeparateDebugArgs="%s" DebugArguments="%s" WorkingDirectory="%s" PauseExecWhenProcTerminates="%s" IsGUIProgram="%s" IsEnabled="%s"/>',
|
|
||||||
targetname, objdir, command, cmdargs, useseparatedebugargs, debugargs, workingdir, pauseexec, isguiprogram, isenabled)
|
|
||||||
else
|
|
||||||
ldPath = string.sub(ldPath, 2)
|
|
||||||
_x(3, '<General OutputFile="%s" IntermediateDirectory="%s" Command="LD_LIBRARY_PATH=%s %s" CommandArguments="%s" UseSeparateDebugArgs="%s" DebugArguments="%s" WorkingDirectory="%s" PauseExecWhenProcTerminates="%s" IsGUIProgram="%s" IsEnabled="%s"/>',
|
|
||||||
targetname, objdir, ldPath, command, cmdargs, useseparatedebugargs, debugargs, workingdir, pauseexec, isguiprogram, isenabled)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function m.environment(cfg)
|
function m.environment(cfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user