Skip to content

Conversation

@sean-parent
Copy link
Member

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


Note

Adds an install preset and extracts BUILD_INTERFACE dependencies for correct find_dependency generation; updates README and bumps actions/checkout to v6.

  • CMake/Install:
    • Handle BUILD_INTERFACE in _cpp_library_generate_dependencies to track namespaced deps for find_dependency(); skip other generator expressions.
    • Add install configure/build presets in templates/CMakePresets.json (Release, CPM_USE_LOCAL_PACKAGES=ON).
  • Docs:
    • README: add install testing workflow using the install preset; document re-exporting deps via BUILD_INTERFACE and why; add best-practice note for CPM_SOURCE_CACHE.
  • CI:
    • Update actions/checkout to v6 in templates/.github/workflows/ci.yml.in.

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

Fixing minor version inconsistency in actions/checkout.
Expanded README with detailed instructions for testing installations and re-exporting dependencies using BUILD_INTERFACE, clarifying CMake best practices. Updated cpp-library-install.cmake to extract dependencies from BUILD_INTERFACE generator expressions for correct find_dependency() generation. Added an 'install' preset to CMakePresets.json for streamlined installation and testing of installed packages.
Updates the dependency export logic to only process BUILD_INTERFACE targets that are namespaced (external dependencies). Non-namespaced BUILD_INTERFACE targets, which are local build targets, are now skipped to avoid incorrect dependency tracking.
@sean-parent sean-parent changed the title Fixing minor inconsistency in ci template Improved install support, including support for BUILD_INTERFACE Dec 17, 2025
@sean-parent sean-parent merged commit 77e5150 into main Dec 17, 2025
4 checks passed
@sean-parent sean-parent deleted the sean-parent/fixes branch December 17, 2025 23:03
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