We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In switching to some new hardware, I need, with the very same source files to create another build where the only difference is some 'options for target' (C/C++ and debug settings). Both builds have to be maintained.
is there a simple way to make target2 out of target1 and then change target 2 so that running target1 will have 'options for target' x running target2 will have 'options for target' y making a change to a .c or .h file will be reflected in both builds
creating a new target and manually enetering the source files is not realistic for this (100+ files)
Erik
assuming i understand you correctly:
copy the whole project to another folder, load the project from that new folder and edit new project as required. you can easily rename the project: i normally just edit the project files with a decent editor (my preferred weapon for this is slickedit, but i know you like codewright).
project ___________ build1 build2 xxx.c yyy.c zzz.c
copy the whole project to another folder, load the project from that new folder and edit new project as required.
that, as I understand would miss the point:
making a change to a .c or .h file will be reflected in both builds
You're looking for "Project->Manage->Manage Components". There you can add targets to the build, which can have different compiler switches and other options (targets are in the left pane of the dialog). They can also be built from different selections of source files. A new target starts out identical to the current one, so you can change from there.
sorry, missed that detail.
thanx 1.000.000 this works beautifully. now I'm getting greedy, is there a way to make both appear in the project window for an, even easier, switch.
is there a way to make both appear in the project window
Both at the same time? No.
That couldn't possibly work anyway as you go from 2 to, say, 30 targets, so there's not much of a good reason to implement such a feature. Target selection is available in the menu bar, so you can quickly change from one target to the other.
Target selection is available in the menu bar as my mother said: "the first place you go blind is in the eyes"
did not spot it