[CMake] Project being (unnecessarily) relinked

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Sep 5 11:50:11 EDT 2007


On 9/4/07, Dizzy <dizzy at roedu.net> wrote:
> On Tuesday 04 September 2007 17:28:31 Jesper Eskilson wrote:
> > Hi!
> >
> > I've got a Visual Studio 8 solution generated by CMake where one of the
> > projects is always being relinked everytime I build it, even when
> > nothing in it has changed (i.e. if I try to build it twice, it always
> > relinks the project the second time).
> >
> > I've studied the build logs, but they do not make me any wiser.
> >
> > Does anyone recognize this behavior?
>
> I have a similar problem but with "Unix makefiles" when I do "make install" it
> relinks everything again and then installs. But because it doesnt relink on a
> second make install I think the issues are separate.

IMHO this is because you are building with RPATH on. Thus when
installing shared libs, cmake need to make sure to remove those path
from your libs.
This is clearly not a bug, but one very good (if not the best) feature of CMake.

2 cents,
-- 
Mathieu


More information about the CMake mailing list