[geos-devel] Small Fix to CMake files for static only builds

Sandro Santilli strk at kbt.io
Wed Mar 27 03:56:59 PDT 2019


On Wed, Mar 27, 2019 at 09:07:27AM +1100, Kirill Kouzoubov wrote:
> Hi,
> 
> I wanted to have a static only build of `geos` library, but also run unit
> tests on a compiled static library. Looks like currently tests are linked
> against shared lib only. However it is relatively easy to make this work in
> `cmake` by introducing "interface" library with the same name as shared lib
> target would be and instructing `cmake` to link to `geos-static` in that
> case.
> 
> Change is small and can be viewed here:
> 
> https://github.com/Kirill888/geos/commit/857372efca8b8e27711b0c85ddf847fc4676b380
> 
> Would be nice if someone incorporated that into master.

Thanks, pushed as commit 43959918201670cd1e72913cf4cffb07b4666708

--strk;


More information about the geos-devel mailing list