[Coin-discuss] externals

Ted Ralphs tkralphs at lehigh.edu
Sun Apr 1 15:50:07 EDT 2007


If you are using the COIN build tools, Stefan's solution is exactly what 
you have to do in order to get everything to work properly. Otherwise, 
your configure script, at least in the way it's intended. This is 
exactly why the directory structure is designed the way it is, so that 
each project can depend on any subset of other projects without the 
externals of the other projects getting in that way.

Cheers,

Ted

Stefan Vigerske wrote:
> Hi,
> 
>> My project X depends on coin projects A and B,
>> A depends on C,
>> B depends on C.
>>
>> Right now, when I checkout, I get:
>>   X, A, C, B, C
>>
>> Is there anywhere to use svn externals so that when you checkout X, 
>> you get A, then C, then B, then it realizes it already has C, so it 
>> skips C?
> 
> not a solution, but maybe a workaround:
> Instead of checking out the package base directory (e.g., 
> https://.../svn/Cbc/trunk), you can checkout from the project base 
> directory (e.g., https://.../svn/Cbc/trunk/Cbc). This has no externals 
> defined and will be sufficient in most cases.
> Then you define the externals for your project X such that all externals 
> for projects A and B are satisfied, i.e., such that you get C (once).
> See, e.g., the externals for the Bonmin project.
> 
> But should svn not recognize it if A and B point to the same C (i.e., 
> same revision number)?
> 
> Stefan
> 


-- 
Dr. Ted Ralphs
Associate Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2



More information about the Coin-discuss mailing list