Revise README and improve untracked dependency handling#17
Merged
sean-parent merged 4 commits intomainfrom Dec 18, 2025
Merged
Conversation
Streamlines and clarifies the README with concise instructions, improved troubleshooting, and updated dependency tracking guidance. Enhances cpp-library's CMake install logic to distinguish between development and install modes for untracked dependencies: now, configuration emits warnings and uses fallbacks for local builds, but installation fails with a clear error if dependencies are not properly tracked. Adds install-time validation to prevent broken package configs and updates user guidance for mapping and tracking dependencies.
Now outputs all unverified dependencies, not just the first one.
Moves export and config file installation steps into the deferred validation function to ensure install-time validation runs before any config files are written. This prevents broken or incomplete config files from being installed if dependency validation fails.
Reorders cmake_language(DEFER) calls to ensure install validation is registered before config generation, taking into account LIFO execution. This guarantees validation runs after config generation as intended.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Streamlines and clarifies the README with concise instructions, improved troubleshooting, and updated dependency tracking guidance. Enhances cpp-library's CMake install logic to distinguish between development and install modes for untracked dependencies: now, configuration emits warnings and uses fallbacks for local builds, but installation fails with a clear error if dependencies are not properly tracked. Adds install-time validation to prevent broken package configs and updates user guidance for mapping and tracking dependencies.
Note
Streamlines README and updates CMake to warn and fallback on untracked deps during configure, but fail installs with new validation that prevents broken package configs.
_CPP_LIBRARY_IN_INSTALL_MODEis set)._cpp_library_setup_install_validationthat reads a generated<Package>_unverified_deps.cmakeand validates before installing configs/exports._cpp_library_deferred_generate_confignow writes unverified deps file and tracks presence via globals.find_package()/CPMAddPackage()).Written by Cursor Bugbot for commit e94509a. This will update automatically on new commits. Configure here.