Skip to content

CMake: Add option ENABLE_INSTALL - #351

Merged
thiagomacieira merged 1 commit into
intel:mainfrom
suda-morris:cmake-add-enable-install
Oct 28, 2026
Merged

thiagomacieira merged 1 commit into
intel:mainfrom
suda-morris:cmake-add-enable-install

Conversation

@suda-morris

@suda-morris suda-morris commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add ENABLE_INSTALL (default ON) so embedders using add_subdirectory() / FetchContent can skip TinyCBOR's install rules.
  • Route every install() through a tinycbor_install helper (headers, pkgconfig, export, tools)
  • Standalone cmake --install is unchanged.

When TinyCBOR is pulled in as a subdirectory, its install() commands write into the parent prefix. install(EXPORT) can also fail if the tinycbor target inherited LINK_LIBRARIES from the parent: those targets are not in TinyCBOR's export set.

Loading
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