ClausKlein
(Claus Klein)
February 9, 2026, 4:17pm
21
Thanks, that helps.
Q 1: What COMPONENT names should be typically used for HEADERS and CXX_MODULES?
Q 2: Would it be possible, that instead of sending an error message, CMake install() could install the FILE_SET HEADERS itself to the default DESTINATION?
ben.boeckel
(Ben Boeckel (Kitware))
February 9, 2026, 4:50pm
22
devel or some variant thereof. Theyβre useful for development packages (sdks) of the project.
Iβd rather not continue to encourage projects to dump things directly into $prefix/include rather than claiming a subdirectory.
ClausKlein
(Claus Klein)
February 9, 2026, 7:33pm
23
Yes, but if it is used like this:
target_sources(
${TARGET_NAME}
PUBLIC
FILE_SET public_headers
TYPE HEADERS
BASE_DIRS ${PROJECT_SOURCE_DIR}/include
FILES
${PROJECT_SOURCE_DIR}/include/beman/execution/execution.hpp
${PROJECT_SOURCE_DIR}/include/beman/execution/functional.hpp
${PROJECT_SOURCE_DIR}/include/beman/execution/stop_token.hpp
${PROJECT_SOURCE_DIR}/include/beman/execution26/execution.hpp
${PROJECT_SOURCE_DIR}/include/beman/execution26/stop_token.hpp
# ...
)
see my PR #215
ben.boeckel
(Ben Boeckel (Kitware))
February 9, 2026, 7:56pm
24
The issue here is that #include <beman/execution/execution.hpp> works without any -I flags (when installed system-wide in a default location). Iβd rather see it installed to /usr/include/beman-executors-1.0/beman/β¦.
1 Like
ClausKlein
(Claus Klein)
February 11, 2026, 3:47pm
25
OK, then for Boost v1.90.0 I may install i.e.
tree _CPack_Packages/Darwin/TGZ/boost_any-1.90.0-Darwin
_CPack_Packages/Darwin/TGZ/boost_any-1.90.0-Darwin
βββ include
β βββ boost-1.90.0
β βββ boost
β βββ any
β β βββ bad_any_cast.hpp
β β βββ basic_any.hpp
β β βββ detail
β β β βββ config.hpp
β β β βββ placeholder.hpp
β β βββ fwd.hpp
β β βββ unique_any.hpp
β βββ type_index
β β βββ ctti_type_index.hpp
β β βββ detail
β β β βββ compile_time_type_info.hpp
β β β βββ config.hpp
β β β βββ ctti_register_class.hpp
β β β βββ stl_register_class.hpp
β β βββ runtime_cast
β β β βββ boost_shared_ptr_cast.hpp
β β β βββ detail
β β β β βββ runtime_cast_impl.hpp
β β β βββ pointer_cast.hpp
β β β βββ reference_cast.hpp
β β β βββ register_runtime_class.hpp
β β β βββ std_shared_ptr_cast.hpp
β β βββ runtime_cast.hpp
β β βββ stl_type_index.hpp
β β βββ type_index_facade.hpp
β βββ type_index.hpp
βββ lib
βββ Boost-1.90.0
β βββ libboost_any.a
β βββ libboost_type_index.a
βββ cmake
βββ boost_any-1.90.0
β βββ boost_any-config-version.cmake
β βββ boost_any-config.cmake
β βββ boost_any-targets-release.cmake
β βββ boost_any-targets.cmake
β βββ cxx-modules
β β βββ cxx-modules-boost_any-targets-Release.cmake
β β βββ cxx-modules-boost_any-targets.cmake
β β βββ target-boost__any-Release.cmake
β βββ modules
β βββ modules
β βββ boost_any.cppm
βββ boost_assert-1.90.0
β βββ boost_assert-config-version.cmake
β βββ boost_assert-config.cmake
β βββ boost_assert-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_assert-targets.cmake
βββ boost_config-1.90.0
β βββ boost_config-config-version.cmake
β βββ boost_config-config.cmake
β βββ boost_config-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_config-targets.cmake
βββ boost_container_hash-1.90.0
β βββ boost_container_hash-config-version.cmake
β βββ boost_container_hash-config.cmake
β βββ boost_container_hash-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_container_hash-targets.cmake
βββ boost_describe-1.90.0
β βββ boost_describe-config-version.cmake
β βββ boost_describe-config.cmake
β βββ boost_describe-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_describe-targets.cmake
βββ boost_mp11-1.90.0
β βββ boost_mp11-config-version.cmake
β βββ boost_mp11-config.cmake
β βββ boost_mp11-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_mp11-targets.cmake
βββ boost_throw_exception-1.90.0
β βββ boost_throw_exception-config-version.cmake
β βββ boost_throw_exception-config.cmake
β βββ boost_throw_exception-targets.cmake
β βββ cxx-modules
β βββ cxx-modules-boost_throw_exception-targets.cmake
βββ boost_type_index-1.90.0
βββ boost_type_index-config-version.cmake
βββ boost_type_index-config.cmake
βββ boost_type_index-targets-release.cmake
βββ boost_type_index-targets.cmake
βββ cxx-modules
β βββ cxx-modules-boost_type_index-targets-Release.cmake
β βββ cxx-modules-boost_type_index-targets.cmake
β βββ target-boost__type__index-Release.cmake
βββ modules
βββ modules
βββ boost_type_index.cppm
33 directories, 63 files