What
Change the CMake install(EXPORT) name from ContainerSystemTargets to container_system_targets,
and update the config install destination to lib/cmake/container_system.
Why
The monitoring_system vcpkg overlay ports standardized on snake_case PACKAGE_NAME
to match vcpkg port naming conventions (kcenon-container-system → container_system).
Currently the portfile must work around this with a wrapper config file:
# vcpkg-ports/kcenon-container-system/portfile.cmake (wrapper workaround)
vcpkg_cmake_config_fixup(
PACKAGE_NAME container_system
CONFIG_PATH lib/cmake/ContainerSystem # <-- PascalCase upstream path
)
file(WRITE ".../container_system-config.cmake"
"include(\".../ContainerSystemConfig.cmake\")\n" # <-- indirection wrapper
)
Once this upstream adopts snake_case natively, the CONFIG_PATH override and
wrapper file in the portfile can be removed.
Where
How
Acceptance Criteria
Implementation
In CMakeLists.txt:
# Before
install(EXPORT ContainerSystemTargets
NAMESPACE ContainerSystem::
DESTINATION lib/cmake/ContainerSystem
)
configure_package_config_file(... INSTALL_DESTINATION lib/cmake/ContainerSystem)
# After
install(EXPORT ContainerSystemTargets
NAMESPACE ContainerSystem::
DESTINATION lib/cmake/container_system
)
configure_package_config_file(... INSTALL_DESTINATION lib/cmake/container_system)
What
Change the CMake
install(EXPORT)name fromContainerSystemTargetstocontainer_system_targets,and update the config install destination to
lib/cmake/container_system.Why
The monitoring_system vcpkg overlay ports standardized on snake_case
PACKAGE_NAMEto match vcpkg port naming conventions (
kcenon-container-system→container_system).Currently the portfile must work around this with a wrapper config file:
Once this upstream adopts snake_case natively, the
CONFIG_PATHoverride andwrapper file in the portfile can be removed.
Where
CMakeLists.txt—install(EXPORT)andconfigure_package_config_file()callsHow
Acceptance Criteria
find_package(container_system CONFIG)works directly from the installed cmake directoryContainerSystem::containertarget still usable (target namespace unchanged)target_link_libraries(... ContainerSystem::container)still compileImplementation
In
CMakeLists.txt: