When files are added to the project, generated files for all target's compilers are not added to the project. A very simple patch to fix this is attached.
I'll try to be generic:
1- Create a custom extension say 'ext' for compilers say 'compA' and 'compB' in advanced compiler options.
2- Enter different generated files for each say 'gfileA' for 'compA' and 'gfileB' for 'compB' for extension 'ext'
3- Create a project with 2 targets say 'tgt1' and 'tgt2' using the compiler 'compA'
4- Assign the compiler 'compB' to 'tgt2'
5- Add a file with extension 'ext' to the project
Only 'gfileA' will be added under generated files where both 'gfileA' and 'gfileB' should be added.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you describe the steps needed to reproduce the problem?
I'll try to be generic:
1- Create a custom extension say 'ext' for compilers say 'compA' and 'compB' in advanced compiler options.
2- Enter different generated files for each say 'gfileA' for 'compA' and 'gfileB' for 'compB' for extension 'ext'
3- Create a project with 2 targets say 'tgt1' and 'tgt2' using the compiler 'compA'
4- Assign the compiler 'compB' to 'tgt2'
5- Add a file with extension 'ext' to the project
Only 'gfileA' will be added under generated files where both 'gfileA' and 'gfileB' should be added.
Are you aware of this:
http://forums.codeblocks.org/index.php/topic,20043.0.html
?
It may address the same issue and is a candidate to be applied.
Applid in SVN. Thank you!