[CMake] Project being (unnecessarily) relinked

Dizzy dizzy at roedu.net
Thu Sep 6 03:51:58 EDT 2007


On Wednesday 05 September 2007 18:50:11 you wrote:
> 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.

I have no idea what you speak of. I have not set anything related to "RPATH" 
nor do I install shared libraries (I have some "convenience libraries" that 
seem to be just some static .a libraries). But I do expect to be something 
from the my usage of CMake which is why I said I think it's a separate issue 
in the first place.

> This is clearly not a bug, but one very good (if not the best) feature of
> CMake.

But it doesn't seem to be that case :)

-- 
Mihai RUSU					Email: dizzy at roedu.net
			"Linux is obsolete" -- AST


More information about the CMake mailing list