Re: [CMake] linking static vs dynamic

2011-02-14 Thread Michael Hertling
On 02/14/2011 10:02 AM, Yngve Inntjore Levinsen wrote: > If you want everything linked statically I believe you can use the variable, > BUILD_SHARED_LIBS, something like > OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" OFF ) > I do believe it will still use dynamic libraries if

Re: [CMake] linking static vs dynamic

2011-02-14 Thread Yngve Inntjore Levinsen
If you want everything linked statically I believe you can use the variable, BUILD_SHARED_LIBS, something like OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" OFF ) I do believe it will still use dynamic libraries if static aren't available, but I am unsure about that part. Che

Re: [CMake] linking static vs dynamic

2011-02-12 Thread Dominik Szczerba
Yes, full paths seem to work fine for me. Many thanks for your feedback! Dominik On Sat, Feb 12, 2011 at 11:11 PM, Michael Hertling wrote: > On 02/12/2011 09:39 PM, Andreas Pakulat wrote: >> On 12.02.11 21:20:58, Dominik Szczerba wrote: >>> I never actually saw a solution to this problem in cmak

Re: [CMake] linking static vs dynamic

2011-02-12 Thread Michael Hertling
On 02/12/2011 09:39 PM, Andreas Pakulat wrote: > On 12.02.11 21:20:58, Dominik Szczerba wrote: >> I never actually saw a solution to this problem in cmake: >> I need to link (independent constraint from above) with libguide.a and >> not libguide.so (in intel compiler, does not matter much), but bot

Re: [CMake] linking static vs dynamic

2011-02-12 Thread Andreas Pakulat
On 12.02.11 21:20:58, Dominik Szczerba wrote: > I never actually saw a solution to this problem in cmake: > I need to link (independent constraint from above) with libguide.a and > not libguide.so (in intel compiler, does not matter much), but both > are available, and cmake always takes the shared

Re: [CMake] linking static vs dynamic

2011-02-12 Thread Alexander Neundorf
On Saturday 12 February 2011, Dominik Szczerba wrote: > I never actually saw a solution to this problem in cmake: > I need to link (independent constraint from above) with libguide.a and > not libguide.so (in intel compiler, does not matter much), but both > are available, and cmake always takes th

[CMake] linking static vs dynamic

2011-02-12 Thread Dominik Szczerba
I never actually saw a solution to this problem in cmake: I need to link (independent constraint from above) with libguide.a and not libguide.so (in intel compiler, does not matter much), but both are available, and cmake always takes the shared one when given "guide" as the desired library to be l