Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: nanyu on September 27, 2009, 10:52:24 am
-
1- I Have a Workspace
2- the Workspace have two project: Project_1,Project_2
3- the Project-1 have three Targets: Debug (exe), Release (exe), Dll
Q1, When I "build all", the IDE start build Project_1 and Project_2,but when build Project_1, IDE always build the "DEBUG" target ONLY, even I have set "DLL " as the active target of project_1. why?
Q2, when set "Project's dependencies..", How to set a Project dependencied on a specific target of the other project ? Now, After I Set Project_2 dependencied on Project_1, it was meant the Project_2 dependencied on the "DEBUG" target of Project_1.
sorry for my english!
thks!
-
You can not explicitely set dependencies between special targets.
Dependencies are set between projects.
If project2 depends on project1 and you build target Debug in project2 it will also build target Debug in project1 if necessary.
In other words, the dependant targets (real and/or virtual targets) have to have the same names in both projects.
If the real targets do not have the same name (and this can or should not be changed), you can also specify virtual targets, that contain the appropriate real targets, and build the virtual target (the dependencies also work for vtargets).
-
You can not explicitely set dependencies between special targets.
Keep in mind that dependency bettween targets in a project is defined to: Targets will be build from top to bottom.
-
You can not explicitely set dependencies between special targets.
Keep in mind that dependency bettween targets in a project is defined to: Targets will be build from top to bottom.
More clearly:
You can not explicitely set dependencies between special targets in different projects.