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

Kirill Kouzoubov kirill888 at gmail.com
Tue Mar 26 15:07:27 PDT 2019


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.

Regards,

Kirill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20190327/32e2d6b4/attachment.html>


More information about the geos-devel mailing list