#932: improve static-library build ------------------------+-------------------------- Reporter: basiliscos | Owner: geos-devel@… Type: patch | Status: new Priority: major | Milestone: Component: Default | Version: master Severity: Unassigned | Keywords: ------------------------+-------------------------- When I launch CMake with the following parameters:
{{{ cmake -DGEOS_BUILD_STATIC=on -DGEOS_BUILD_SHARED=off .. }}} it fails with the error: {{{ CMake Error at capi/CMakeLists.txt:45 (add_dependencies): Cannot add target-level dependencies to non-existent target "geos_c". The add_dependencies works for top-level logical targets created by the add_executable, add_library, or add_custom_target commands. If you want to add file-level dependencies see the DEPENDS option of the add_custom_target and add_custom_command commands. }}} The provided patch makes it optional to build C API (on by default, as in master), and static library builds fine. The geos version is 3.7.0 -- Ticket URL: <https://trac.osgeo.org/geos/ticket/932> GEOS <http://trac.osgeo.org/geos> GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
_______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/geos-devel