fix(cmake): standardize exported target name to container_system::container_system#507
Merged
Merged
Conversation
…tainer_system Change EXPORT_NAME from container to container_system so consumers get container_system::container_system after find_package(container_system), following the <package>::<package> convention. Add container_system::container_system as canonical build-tree alias. Backward-compatible aliases (container_system::container and ContainerSystem::container) are preserved for existing consumers. Part of kcenon/vcpkg-registry#78
Contributor
Performance Benchmark ReportSummary
✅ Status: No significant performance regressions detected. |
kcenon
added a commit
that referenced
this pull request
Apr 13, 2026
…tainer_system (#507) Change EXPORT_NAME from container to container_system so consumers get container_system::container_system after find_package(container_system), following the <package>::<package> convention. Add container_system::container_system as canonical build-tree alias. Backward-compatible aliases (container_system::container and ContainerSystem::container) are preserved for existing consumers. Part of kcenon/vcpkg-registry#78
13 tasks
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.
What
Summary
Standardize the CMake exported target name from
container_system::containertocontainer_system::container_system, following the<package>::<package>convention.Change Type
Affected Components
CMakeLists.txt- ChangedEXPORT_NAMEand added canonical aliascmake/container_system-config.cmake.in- Added backward compatibility aliasWhy
Problem Solved
After
find_package(container_system), consumers previously gotcontainer_system::containerinstead of the conventionalcontainer_system::container_system. This deviates from the standard<package>::<package>naming convention used by most CMake packages.Related Issues
Where
Files Changed
CMakeLists.txtEXPORT_NAME, added canonical aliascmake/container_system-config.cmake.inHow
Implementation Details
Changed
EXPORT_NAMEfromcontainertocontainer_systeminset_target_properties()so the exported target becomescontainer_system::container_system.Added
container_system::container_systemas a build-tree alias forin-tree consumers (unified builds).
Added a backward-compatible alias in the config template:
Updated
ContainerSystem::containerlegacy alias to link againstcontainer_system::container_systeminstead ofcontainer_system::container.Updated
container_system_LIBRARIESvariable to use the new canonical name.Breaking Changes
None - existing consumers using
container_system::containerorContainerSystem::containerwill continue to work via backward-compatible aliases.