Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#969 closed defect (fixed)

CMake: Strip release binaries

Reported by: jng Owned by: jng
Priority: major Milestone:
Component: Build System Version:
Severity: 3 Keywords:
Cc: External ID:

Description

Our CMake build does not strip release binaries resulting in bloated tarballs (especially if we build internal GDAL, whose un-stripped size is over 100MB).

This can be address by:

  • Setting CPACK_STRIP_FILES to TRUE to ensure all library targets are stripped before packaging
  • Manually running strip on any external .so files that are "installed" (eg. Internal gdal/xalan/xerces)

Change History (2)

comment:1 by jng, 5 years ago

Resolution: fixed
Status: assignedclosed

In 7827:

CMake: Strip release binaries as part of installation and packaging

Fixes #969

comment:2 by jng, 5 years ago

In 7828:

Our previous change for stripping binaries did the stripping at *CMake configuration* time (where the binaries to be stripped do not exist yet) and not at install time. For stripping to work at install time, we have to wrap the original execute_process invocation within an install(CODE ...) statement.

Fixes #969 for real

Note: See TracTickets for help on using tickets.