Thanks for your prompt response eranif.
I actually found a way to do it in the Project Settings Debugger tab, where I set a command to be passed to the debugger at startup:
set env LD_LIBRARY_PATH = ........
The problem with this solution is that I cannot use CodeLite variables, like $(IntermediateDirectory), to set it to the path according to the Debug or Release build location. Whenever I switch between them I have to go back in there and change it.
The problem with setting it in the IDE settings is that I want to carry the setting with me to other environments. I want to be able to set it in the workspace/project settings. I don't want to tell people they need to configure their IDE settings a certain way to use my project/workspace files.
I submitted a feature request to add something to the Project Settings dialog for this, perhaps under the General tab just under the Command Arguments setting, since they are related parameters.
This is a really nice IDE. Thanks to you and others for contributing it to the community!