[CMake] static library link order

Biddiscombe, John A. biddisco at cscs.ch
Thu Mar 4 11:18:36 EST 2010


> I am experimenting with Michael's CMAKE_CXX_LINK_EXECUTABLE suggestion

It's works.

Nice one. I like it, override the link line generation stuff with additional flags. I can at least proceed now with getting other things fixed, though I understand the nasty hack nature of the solution.

Thanks Michael/Bill

JB



> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of
> Biddiscombe, John A.
> Sent: 04 March 2010 16:46
> To: Bill Hoffman
> Cc: cmake at cmake.org
> Subject: Re: [CMake] static library link order
> 
> 
> 
> Bill
> 
> >  Does ParaView itself not
> > link static on linux?
> 
> In general no not really. On our Cray we have no dynamic lib support and
> this kind of thing is very painful. On other machines even if you turn off
> shared libs, in actual fact, the final exe does pull in all the system libs
> as shared ones, so it's not a true test.
> 
> 
> > set KWSYS_USE_DynamicLoader to 0
> 
> where does one do that?
> 
> 
> > There is not much more CMake can do for this.  So, I would recommend
> > moving the discussion to the ParaView or VTK developers list.
> 
> OK. I am experimenting with Michael's CMAKE_CXX_LINK_EXECUTABLE suggestion
> and have found some references using google, but I'm not quite sure how to
> progress, so any hint welcome as they will certainly save me time.
> 
> thanks
> 
> JB
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list