We you this feature when building workspace with virtual targets. The -g or -O2 are then set in build configuration options not in project options. This is useful when build virtual target over workspace with many projects.
Can you be more precise? If you look at the C::B workspace its the same there w/o any extension: We have grouped targets using virtual targets there, too.
If you want to have a "release" and "debug" target across a WS what you need to do is:
- in each project create a "release" and "debug" target and setup its parameters
- in each project create a virtual target "release_build" where you select only the "release" target as member
- in each project create a virtual target "debug_build" where you select only the "debug" target as member
- add all projects to a WS
Select either "release_build" to only compile the "release" targets only or "debug_build" for the "debug" targets accordingly.
Note that you could also have another virtual target in each project named "All" which consists of both: The "release" and "debug" target. Selecting this will compile all targets in all projects for you then.
So I still fail to see whats new...?!