Support org-prefixed package names in find_package#682
Open
sean-parent wants to merge 2 commits intocpm-cmake:masterfrom
Open
Support org-prefixed package names in find_package#682sean-parent wants to merge 2 commits intocpm-cmake:masterfrom
sean-parent wants to merge 2 commits intocpm-cmake:masterfrom
Conversation
CPM.cmake now attempts to locate packages using organization-prefixed names (e.g., org-library) if the standard name is not found. This helps resolve naming conflicts and improves compatibility with packages installed under organization-qualified names. Documentation has been updated to reflect this behavior.
sean-parent
added a commit
to stlab/cpp-library
that referenced
this pull request
Nov 20, 2025
Clarifies that GitHub repository names must match package names, including namespace prefixes, for CPM compatibility. Updates usage examples, instructions, and project links to reflect this requirement and prevent issues with CPM's local package finding and source fetching. Repository naming requirements may be backed out if [this CPM PR](cpm-cmake/CPM.cmake#682) lands.
TheLartians
reviewed
Jan 18, 2026
Member
TheLartians
left a comment
There was a problem hiding this comment.
Thanks for the PR! I can see how this can be useful with CPMFindPackage. Two questions:
- I am currently not aware of this schema for org qualified package names. Is this a common practice / do you have a reference for it?
- I wonder about the ordering, as I would expect the org-qualified name to take priority over the unqualified name. Would it make sense to look for the org-qualified name first?
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.
Change CPM.cmake to attempt to locate packages using organization-prefixed names (e.g., org-library) if the standard name is not found. This helps resolve naming conflicts and improves compatibility with packages installed under organization-qualified names. README documentation has been updated to reflect this behavior.