id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 878,Static library does not contain C API,Dakota Hawkins,robe,"To support building (e.g., GDAL) against static libs only, add the C API to the static target. Otherwise, if building with CMake, the C API is only available in a dynamic library. In the future, this could be a lot cleaner -- e.g. with more idiomatic CMake configuration of shared vs. static builds -- but for the time being I hope this will be acceptable. I have provided a [https://github.com/OSGeo/geos/pull/102 3.7 patch here] and a [https://github.com/OSGeo/geos/pull/103 3.6 backport patch of the same thing here]. Applying that patch to 3.6.2 has allowed me to build a fully static version of GDAL using GEOS. Without it, GDAL would require the GEOS C API dynamic library. I think (from reading the files) nmake will generate a similar static library, but I think its targets are slightly different from those generated by CMake, so I've just tried to use my best judgement for CMake. Without this capability, we will be required to manually patch GEOS each time we pull a new version, and that will be difficult for us to maintain over time. I would be happy to make any changes required or requested if it helps get this functionality into an official release.",patch,closed,major,3.6.4,Build/Install (cmake),3.6.2,Significant,fixed,cmake capi static,