Bug #9940 2007-01-11 19:42

methedrine

Builtin variables ignore dependencies

When you build a project (f.e. pA) that depends upon another project (pB) then Code::Blocks will assign the values for pA to the built-in variable $(PROJECT_DIR). In details this means that pB's build will of course precede pA's build but will use pA's value for said variable.

The problem also applies to $(PROJECT_FILE), it contains the active project only - not the currently built project.

Imho Code::Blocks should assign the values for the currently build project to those variables, not just for the active project, otherwise it might happen that some prebuild steps won't work as expected when projects are located in different directories.

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to
 
dermeister 2007-01-11 23:05

Just for the sake of completeness: Which version did you use? On which platform? Built by yourself? If yes, which version of wxWidgets, which Compiler(-version)?

methedrine 2007-01-12 06:44

Woops, sorry. I so tend to forget that information when there are no pre-defined fields for it.

Platform: Windows XP

Version: Nightly Build, rev 3474