From ff70dc685d1999e86cb6fc45356120b8f09caad9 Mon Sep 17 00:00:00 2001 From: Aleksey Selihov Date: Sat, 24 Oct 2026 17:55:03 +0000 Subject: [PATCH] Install the shared Void/Detail headers include/Void/Detail/Enum.hpp is included by public headers of Core (Meta.hpp), Log (Level.hpp, LoggingAdapter.hpp), Configuration (Config.hpp) and Data (Reflect.hpp), but belongs to no module's FILE_SET, so `cmake --install` never copied it and every consumer of an installed VoidLibrary failed to compile those headers. Co-Authored-By: Claude Opus 5.5 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05922e4..9c1d6f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,12 @@ configure_package_config_file( INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" ) +# Support headers shared by several modules (e.g. Void/Detail/Enum.hpp, used by +# Core, Log, Configuration and Data). They belong to no module's FILE_SET, so +# they are installed here; every module's install include dir covers them. +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/Void/Detail" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/Void") + install(EXPORT ${EXPORT_SET_NAME} NAMESPACE ${PROJECT_NAME}:: DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"