[PROJ] Is there a cmake way to change the library name?

Greg Troxel gdt at lexort.com
Tue Jun 25 09:07:12 PDT 2024


Carl Godkin via PROJ <proj at lists.osgeo.org> writes:

> On Tue, Jun 25, 2024 at 7:27 AM Javier Jimenez Shaw <j1 at jimenezshaw.com>
> wrote:
>
>> One question
>>
>> Are you linking the same GDAL (or final binary) with both versions of
>> PROJ? If that is the case, I think it would be undefined behaviour.
>>
>>
>>>
>>>
> No, I am not linking anything to both versions of PROJ.
>
> Our main apps link to both GDAL and PROJ (i.e., the "full" versions of
> both).
>
> This plugin links to GDAL (the minimal one) and PROJ (minimal also, and the
> version the minimal GDAL was built with).

Plugins are generally dynamically loaded, so there really needs to be
library compat with the host/main program.

I would recommend having an entirely separate prefix for older/different
versions, and to build everything within each prefix, not crossing.

> use.


More information about the PROJ mailing list