[PROJ] Proj9 small library size
Charles Karney
charles.karney at gmail.com
Tue Aug 16 06:19:58 PDT 2022
It's not particularly difficult to get cmake to build both static and
shared libraries. Just set up targets for both and have "make all"
build them.
On 8/16/22 08:53, Sebastiaan Couwenberg wrote:
> On 8/16/22 14:03, Greg Troxel wrote:
>> Even Rouault <even.rouault at spatialys.com> writes:
>>
>>> @Mike That's a different thing. libproj-dev from PROJ 7 includes the
>>> static .a library, whereas the one from PROJ 9 doesn't (since PROJ
>>> CMake builds only build shared or static libraries, but not both at
>>> the same time)
>>
>> That seems like a bug, if you can't easily pass a switch to make both.
>
> It's long standing CMake behavior.
>
> libtools builds both by default, so switching to CMake implies dropping
> dropping the static library, or building the project twice setting
> BUILD_SHARED_LIBS accordingly.
>
> It's of the reasons switching from Autotools to CMake is considered a
> regression of packaging point of view.
>
> The static library is a convenience for users of the Debian package,
> it's not used by other packages, so dropping it is not a big deal, it
> only affects a small subset of users.
>
> Kind Regards,
>
> Bas
>
More information about the PROJ
mailing list