[geos-devel] [GEOS] #931: Add "dist" and "distcheck" targets to CMake

GEOS geos-trac at osgeo.org
Thu Oct 4 06:51:43 PDT 2018


#931: Add "dist" and "distcheck" targets to CMake
------------------------+--------------------------
 Reporter:  dbaston     |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:
Component:  Default     |    Version:  3.6.2
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 From Bas Couwenberg:

   autotools and cmake take the opposite approach to creating
   distribution
   archives.

   autotools only includes the files it is configured to.

   cmake includes everything in the source tree not explicitly
   excluded.

   To support `make dist` with CMake you need to add a custom
   target:

   add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)

   And configure CPACK_SOURCE_IGNORE_FILES to exclude everything that
 should not end up in the archives.

   For `make distcheck` you'll need to implement more custom targets.

   NetCDF may be a source of inspiration:


 https://github.com/Unidata/netcdf-c/blob/master/cmake/modules/FindMakeDist.cmake

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/931>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list