Files
Tim Blechmann 9f9a96ae63 cmake test: add unified cmake_test dir, handle B2 install missing per-library cmake config
Add test/cmake_test/CMakeLists.txt (new unified folder the CI checks
first) with BOOST_CI_INSTALL_TEST branching, replacing the old
cmake_install_test fallback. Also update cmake_install_test for
backward compatibility.

Root cause: b2 install calls boost-install.boost-install with empty
library list for header-only libs lacking the 'install' option.
BoostConfig.cmake is generated unconditionally, but per-library
boost_heap-config.cmake is skipped. So find_package(Boost CONFIG
REQUIRED COMPONENTS heap) fails because boost_find_component cannot
find the per-library config.

Fix: Use find_package(Boost CONFIG QUIET COMPONENTS heap) first.
If Boost::heap target wasn't created (B2 install case), create it
manually as INTERFACE IMPORTED using include dirs from Boost::headers.
2026-05-28 15:54:00 +07:00
..
2024-11-09 12:55:27 +08:00