Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: dfatcb on May 23, 2012, 09:59:41 pm
-
Hello,
I have a source module (happens to be .asm, but think this applies to all types) that is on a different drive X:. So I add that file to the project and when it builds it ends up creating subfolders for the file under the output target object folder as in X\path\filename.obj . Is there an option to have it output the .obj file to the normal object output folder without creating all the sub-folders?
Thanks.
-
You will need to change destination of objects files.
This option is in project's options -> build targets -> objects output dir
Obviously, C::B will change that for all sources of the defined target.
If you need such behavior for a subset of sources, you will need to define new targets for each subset. Or maybe you can write scripts, but it will probably be harder.
-
You can try what happens, if you check "Generate extended object names" on the "Project settings"-tab (first tab) of the projects properties.
I'm not on windows at the moment and can not test.