Skip to content

Add missing COMPONENT to all install() rules for correct deb packaging - #216

Closed
heifner wants to merge 1 commit into
masterfrom
feature/install-components
Closed

heifner wants to merge 1 commit into
masterfrom
feature/install-components

Conversation

@heifner

@heifner heifner commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

With CPACK_DEB_COMPONENT_INSTALL enabled, install() rules without a COMPONENT go to "Unspecified" which is excluded from both the base and dev .deb packages. This adds COMPONENT to all 21 install() rules that were missing it:

  • trace_api_util binary -> base (was silently excluded from .deb)
  • Licenses directory -> base and dev
  • Headers, static libraries, and cmake configs -> dev (libfc, libfc-lite, sysio_chain, builtins, sysio_testing, wasm-jit, vcpkg includes/libs, sysio cmake configs)

With CPACK_DEB_COMPONENT_INSTALL enabled, install() rules without a
COMPONENT go to "Unspecified" which is excluded from both the base and
dev .deb packages. This adds COMPONENT to all 21 install() rules that
were missing it:

- trace_api_util binary -> base (was silently excluded from .deb)
- Licenses directory -> base and dev
- Headers, static libraries, and cmake configs -> dev
  (libfc, libfc-lite, sysio_chain, builtins, sysio_testing,
   wasm-jit, vcpkg includes/libs, sysio cmake configs)
@heifner
heifner requested a review from jglanz February 20, 2026 18:25
Base automatically changed from feature/copyrights to master February 23, 2026 22:32

@huangminghuang huangminghuang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COMPONENT dev EXCLUDE_FROM_ALL now belongs only to PUBLIC_HEADER, because install(TARGETS) options after artifact kinds apply only to current artifact group. ARCHIVE stays Unspecified, so default static build still omits libsysio_testing.a from sysio-dev. Fix: put COMPONENT dev EXCLUDE_FROM_ALL in each artifact group, or before artifact-kind groups as generic target options where valid.

@heifner

heifner commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #511

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants