Author Topic: $object location for file on separate drive  (Read 3231 times)

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 56
$object location for file on separate drive
« 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.

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: $object location for file on separate drive
« Reply #1 on: May 23, 2012, 11:22:46 pm »
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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: $object location for file on separate drive
« Reply #2 on: May 24, 2012, 06:14:48 am »
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.