User forums > General (but related to Code::Blocks)
Track lib changes ?
MortenMacFly:
--- Quote from: Kalith on September 10, 2010, 05:48:35 pm ---
--- End quote ---
Ok - so you create two virtual targets in BOTH projects:
One called "Windows", that includes the Windows release/target and OGRE (probably also SFML).
One called "Linux", that includes the Linux release/target and OGRE (probably also SFML).
Then on workspace level you select the target named "Windows". As it is present with exactly the same name in both projects if you hit "build workspace" the right combination is compiled.
The same applies to Linux. In addition I would set the platform flag for the main projects as needed t avoid compiling what's not supported on the current platform. That's pretty much it.
Kalith:
Is see.
Yet it is not an optimal solution. If I want my targets to be coherent, the "Windows" target of the GUI project should build both the OGRE and the SFML versions (as you pointed out). The thing is that the SFML version is absolutely not needed by the main project, but it will be listed as a required dependency, and as such, be compiled every time along with the OGRE version.
I agree my setup may be a bit weird, but my initial request would make things much simpler : I only need C::B to check if the library output file has changed, and if so, re-link.
Navigation
[0] Message Index
[*] Previous page
Go to full version