mirror of
https://github.com/boostorg/heap.git
synced 2026-07-21 13:23:40 +00:00
9f9a96ae63
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.