79651649

Date: 2025-06-03 17:19:34
Score: 2.5
Natty:
Report link

I have a similar problem with boost 1.88.0 installed from the binary release file for Windows available here: https://archives.boost.io/release/1.88.0/binaries/boost_1_88_0-bin-msvc-all-32-64.7z

The above archive has a somewhat strange folder structure that doesn't seem to work very well with CMake. CMake find_package in CONFIG mode needs to find the file BoostConfig.cmake that is contained in several different directories. You need to point it to the right one for you. For example, when using VS2022 for 64-bit x86 builds, you would use lib64-msvc-14.3/cmake/Boost-1.88.0/BoostConfig.cmake.

I found it easiest to have the environment variable Boost_ROOT set to this directory rather than to the actual root directory of boost. But I consider that a hack. I think the boost developers ought to make this easier, perhaps by revising the folder structure to better match the search procedure used by CMake.

Reasons:
  • Blacklisted phrase (1): I have a similar problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar problem
Posted by: sh-