Skip to content

Conversation

@sean-parent
Copy link
Member

@sean-parent sean-parent commented Dec 22, 2025

Installation is now enabled if either building as a top-level project or if the ${NAMESPACE}_INSTALL variable is set to ON. Updated documentation to explain how to enable installation in non-top-level projects, improving support for package managers and advanced workflows.


Note

Enables installation for libraries used as dependencies by gating install logic behind a namespace-scoped option.

  • Introduces ${NAMESPACE}_INSTALL (defaults to PROJECT_IS_TOP_LEVEL) in _cpp_library_setup_install; returns early if OFF
  • _cpp_library_setup now always calls _cpp_library_setup_install (installation controlled internally by the option)
  • Defers GNUInstallDirs/CMakePackageConfigHelpers includes until after the install check
  • Updates README.md with instructions and notes on controlling installation with ${NAMESPACE}_INSTALL

Written by Cursor Bugbot for commit 0e6c594. This will update automatically on new commits. Configure here.

Installation is now enabled if either building as a top-level project or if the `${NAMESPACE}_INSTALL` variable is set to ON. Updated documentation to explain how to enable installation in non-top-level projects, improving support for package managers and advanced workflows.
Introduces a CMake option `${NAMESPACE}_INSTALL` (defaulting to `PROJECT_IS_TOP_LEVEL`) to explicitly enable or disable installation of the library. Updates documentation and refactors install logic to use this option, allowing more flexible control for both top-level and subproject builds.
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