Opened 6 years ago

Closed 5 years ago

Last modified 10 months ago

#931 closed defect (fixed)

Add "dist" and "distcheck" targets to CMake

Reported by: dbaston Owned by: dbaston
Priority: major Milestone:
Component: Default Version: 3.6.2
Severity: Unassigned Keywords:
Cc:

Description

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

Change History (9)

comment:1 by dbaston, 6 years ago

Owner: changed from geos-devel@… to dbaston

comment:2 by strk, 6 years ago

I think "include all by default" is a dangerous approach, and hard to check, and hard to produce an "uninstall" rule for either (we do want "uninstall" too!)

comment:3 by dbaston, 5 years ago

Resolution: fixed
Status: newclosed

Resolved by pramsey in git:44acf18e52a6ed

comment:4 by Paul Ramsey <pramsey@…>, 10 months ago

In 583ee56/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

comment:5 by Paul Ramsey <pramsey@…>, 10 months ago

In efda6148/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

comment:6 by Paul Ramsey <pramsey@…>, 10 months ago

In bd3e599/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

comment:7 by Paul Ramsey <pramsey@…>, 10 months ago

In e784aa1/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

comment:8 by Paul Ramsey <pramsey@…>, 10 months ago

In e745ccb/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

comment:9 by Paul Ramsey <pramsey@…>, 10 months ago

In 3b02d4a/git:

Remove undefined behaviour in use of null PrecisionModel, closes #931

Note: See TracTickets for help on using tickets.