I am trying to create a new project template for the Eclipse CDT to answer my question asked here . @Jonah Graham provided a very detailed overview in her answer to 1 , and it delivered me most of the way.
However, I cannot figure out how to set the parameter that is listed in the drop-down list; for example Dialect / Language Standard on ISO C++11 (-std=c++01) on the "Settings / Tool Settings" / GCC C ++ Compiler / Dialect tab. The same problem would occur if I wanted to change the default optimization or debug levels, etc.
I thought maybe this could be achieved with something like
<process type="org.eclipse.cdt.managedbuilder.core.SetMBSStringListOptionValues"> <simple name="projectName" value="$(projectName)" /> <complex-array name="resourcePaths"> <element> <simple name="id" value=".*cpp\.compiler\.option\.dialect\.std." /> <simple-array name="values"> <element value="gnu.cpp.compiler.dialect.c++11" /> </simple-array> <simple name="path" value="" /> </element> </complex-array> </process>
Unfortunately, this has no effect (no errors, but nothing in the resulting .cproject file).
I can get around this by setting the โOther dialectโ flag, which is just a string, but I would like to know how to do this using the drop-down list, as they appear elsewhere.
sfjac source share