freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] CMakeLists.txt patch


From: Werner LEMBERG
Subject: Re: [ft] CMakeLists.txt patch
Date: Fri, 14 Aug 2015 09:14:43 +0200 (CEST)

> [...] by static dependencies, you mean everthing else one needs on
> the link line to use the main package (freetype) built static (since
> the dependency libs are not embedded in archives like they are for
> .so's).

Exactly.

> What variable is Boost returning the dependency libs in?
> (Not seeing it looking at latest FindBoost.cmake.)

Note that I have never used `FindBoost.cmake' – I guess that the
standard return variables are used.  To enforce static return values,
it seems that you have to set the `Boost_USE_STATIC_LIBS' cmake
variable.

On the other hand, `FindPkgConfig.cmake' already returns the necessary
data for static linking (see the file itself for more on this), but
most of the packages that include this file don't make use of it.
Additionally, not all libraries provide proper .pc configuration files
for PkgConfig.

Simply do

  grep -i static *

in cmake's `Modules' directory to see how seldom this keyword is
used...


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]