User forums > Using Code::Blocks

setting Builtin Variables?

(1/1)

denk_mal:
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

Biplab:
These variables are defined internally by C::B.

thomas:

--- Quote from: denk_mal on August 01, 2007, 09:49:05 am ---$(TARGET_OUTPUT_DIR) is pointing to $(PROJECTDIR) and not to $(PROJECTDIR)/bin/Debug
--- End quote ---
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.

thomas:
Fixed in revision 4339.

Navigation

[0] Message Index

Go to full version