What
Change the CMake config install destination from lib/cmake/NetworkSystem to
lib/cmake/network_system so find_package(network_system CONFIG) resolves natively.
Why
The monitoring_system vcpkg overlay ports standardized on snake_case PACKAGE_NAME
to match vcpkg port naming conventions (kcenon-network-system → network_system).
Currently the portfile must work around this with a wrapper config file:
# vcpkg-ports/kcenon-network-system/portfile.cmake (wrapper workaround)
vcpkg_cmake_config_fixup(
PACKAGE_NAME network_system
CONFIG_PATH lib/cmake/NetworkSystem # <-- PascalCase upstream path
)
file(WRITE ".../network_system-config.cmake"
"include(\".../NetworkSystemConfig.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 NetworkSystemTargets
NAMESPACE NetworkSystem::
DESTINATION lib/cmake/NetworkSystem
)
configure_package_config_file(... INSTALL_DESTINATION lib/cmake/NetworkSystem)
# After
install(EXPORT NetworkSystemTargets
NAMESPACE NetworkSystem::
DESTINATION lib/cmake/network_system
)
configure_package_config_file(... INSTALL_DESTINATION lib/cmake/network_system)
What
Change the CMake config install destination from
lib/cmake/NetworkSystemtolib/cmake/network_systemsofind_package(network_system CONFIG)resolves natively.Why
The monitoring_system vcpkg overlay ports standardized on snake_case
PACKAGE_NAMEto match vcpkg port naming conventions (
kcenon-network-system→network_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(network_system CONFIG)works directly from the installed cmake directoryNetworkSystem::NetworkSystemtarget still usable (target namespace unchanged)target_link_libraries(... NetworkSystem::NetworkSystem)still compileImplementation
In
CMakeLists.txt: