Skip to content

How to build the code examples (clang version 19.1.7 macOS) #27

Description

@tsunho12

After running cmake -S . -B build, I received the following error message. I installed boost@1.87.0, google-test, and google-benchmark via Homebrew. I then tried editing the CMakeLists.txt to change the Boost version from 1.86.0 to 1.87.0, but the same error persists. Additionally, I attempted to install boost.cobalt on my Mac, but the error remains unchanged.

Here’s the error message for reference:

CMake Error at /usr/local/lib/cmake/Boost-1.87.0/BoostConfig.cmake:141 (find_package):
  Could not find a package configuration file provided by "boost_cobalt"
  (requested version 1.87.0) with any of the following names:

    boost_cobaltConfig.cmake
    boost_cobalt-config.cmake

  Add the installation prefix of "boost_cobalt" to CMAKE_PREFIX_PATH or set
  "boost_cobalt_DIR" to a directory containing one of the above files.  If
  "boost_cobalt" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Boost-1.87.0/BoostConfig.cmake:262 (boost_find_component)
  /usr/local/share/cmake/Modules/FindBoost.cmake:610 (find_package)
  Chapter_10/CMakeLists.txt:9 (find_package)

Any suggestions on how to resolve this issue would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions