[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] How to set include paths programmatically?
|
On Friday 26 February 2010 14:31:50 Aytac Sartekin wrote:
> Hi,
>
> I use ManagedBuildManager.setOption(config,tool,option,value) method to set libraries and library search path option of linker. and it calls configuration.setOption().
> Then it libs and lib paths are changed in the projects Properties->ToolSettings page but they aren't saced to the .cproject file. When I closed and reopen Eclipse CDT libs and paths are disappeared from the properties page.
> I looked at the setOption() method of ToolSettingsTab class and it also use ManagedBuildManager.setOption and that's all changed options are set in .cproject.
> Does anybody can help me what should I do to set libs options in .cproject?
Perhaps you forgot to call CoreModel.getDefault().setProjectDescription after changing the
options? Unless you do that, changes to options are not persisted in any way.
Hope this helps,
--
Vladimir Prus
CodeSourcery
vladimir@xxxxxxxxxxxxxxxx
(650) 331-3385 x722