[CMake] Inter-project dependencies

2008-05-20 Thread Emmanuel Blot
Hi, I'm using CMake to build two C-based projects The first CMake project builds several static libraries (ARM elf / eCos) The second CMake project builds several application which do link against the static libraries produced within the first project. However, both CMake projects are unrelat

Re: [CMake] Inter-project dependencies

2008-05-21 Thread Brad King
Emmanuel Blot wrote: > Hi, > > I'm using CMake to build two C-based projects > > The first CMake project builds several static libraries (ARM elf / eCos) > The second CMake project builds several application which do link > against the static libraries produced within the first project. > However

Re: [CMake] Inter-project dependencies

2008-05-21 Thread Emmanuel Blot
In the second project make sure you specify the libraries to link from the first project by full path. Then the dependencies will be hooked up. Without a full path CMake does not know how to add a build-time dependency on a library. You can get a full path in the second project by using find

Re: [CMake] Inter-project dependencies

2008-05-21 Thread Brad King
Emmanuel Blot wrote: I tried the importing target feature, but unfortunately, it does not seem to work as (I ?) expected. [snip] "touching" the libfoo.a never leads to relink the executable file. You've got everything setup right AFAICS. Rebuilding should work correctly, but it looks like t