Skip to content

Commit 0e13cf3

Browse files
committed
fix(cmake): update install rules for migrated header paths
After PR #440 migrated headers to include/kcenon/container/, two directories were missing from the cmake install rules: - include/container/ forwarding headers (for #include <container/...>) - messaging/ directory (message_container.h) This caused downstream build failures (e.g., network_system CI on Windows MSVC) when cmake --install did not copy these headers.
1 parent d65eb42 commit 0e13cf3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,11 @@ set(CONTAINER_SYSTEM_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/container_
566566
#
567567
# The following directories are installed:
568568
# - include/kcenon/container/ (canonical public headers)
569+
# - include/container/ (forwarding headers for #include <container/...> paths)
569570
# - core/ (forwarding headers for backward compatibility)
570571
# - internal/ (internal implementation details)
571572
# - integration/ (integration adapters)
573+
# - messaging/ (domain-specific messaging container)
572574
# =============================================================================
573575
install(FILES
574576
${CMAKE_CURRENT_SOURCE_DIR}/container.h
@@ -594,11 +596,22 @@ install(DIRECTORY
594596
PATTERN "*.hpp"
595597
)
596598

599+
# Forwarding headers under include/container/ (for #include <container/...> paths)
600+
install(DIRECTORY
601+
${CMAKE_CURRENT_SOURCE_DIR}/include/container
602+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
603+
COMPONENT Development
604+
FILES_MATCHING
605+
PATTERN "*.h"
606+
PATTERN "*.hpp"
607+
)
608+
597609
# Backward-compatible forwarding headers and internal implementation
598610
install(DIRECTORY
599611
${CMAKE_CURRENT_SOURCE_DIR}/core
600612
${CMAKE_CURRENT_SOURCE_DIR}/internal
601613
${CMAKE_CURRENT_SOURCE_DIR}/integration
614+
${CMAKE_CURRENT_SOURCE_DIR}/messaging
602615
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
603616
COMPONENT Development
604617
FILES_MATCHING

0 commit comments

Comments
 (0)