Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: denk_mal on August 01, 2007, 09:49:05 am

Title: setting Builtin Variables?
Post by: denk_mal on August 01, 2007, 09:49:05 am
Hi,

i have tried to use the builtin variables in a post build step and found out that im
my enviromet the variables $(TARGET_OUTPUT_DIR) is pointing to $(PROJECTDIR)
and not to $(PROJECTDIR)/bin/Debug
The variable $(TARGET_OBJECT_DIR) is pointing to $(PROJECTDIR)/obj/Debug

Where do I set the variable $(TARGET_OUTPUT_DIR) ?

BTW Is there a nicer (plattform independed) way to copy some files to the $(TARGET_OUTPUT_DIR) ?

greetings
denk_mal
Title: Re: setting Builtin Variables?
Post by: Biplab on August 01, 2007, 10:04:25 am
These variables are defined internally by C::B.
Title: Re: setting Builtin Variables?
Post by: thomas on August 01, 2007, 10:40:10 am
$(TARGET_OUTPUT_DIR) is pointing to $(PROJECTDIR) and not to $(PROJECTDIR)/bin/Debug
You're right. Although it shouldn't...

The problem lies in CompileTargetBase::GetBasePath() which doesn't do what its description says. Unluckily, this can't be changed since 72 other code bits depend on it. I'll look for a workaround.
Title: Re: setting Builtin Variables?
Post by: thomas on August 01, 2007, 11:16:03 am
Fixed in revision 4339.