CMake < 3.10 fails

Open
#688 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cmake, cpp
Domain
build-system

Research direction

The failure is raised at libs/graph/CMakeLists.txt line 9, where add_library links Boost::int128, which is not found under CMake 3.8. Start with that file, then check how the int128 dependency's CMakeLists.txt sets its minimum CMake version, since the report says it requires 3.10. Done when the failing CI job in the linked run configures and builds on the 3.8 default.

Written by the indexing model from the issue text.

Description

infra priority: high
CMake Error at libs/graph/CMakeLists.txt:9 (add_library):
  Target "boost_graph" links to target "Boost::int128" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

https://github.com/boostorg/cmake/actions/runs/41255567566/job/124785840737

That's because int128 requires CMake 3.10 in its CMakeLists.txt for some reason, instead of our default of 3.8.

Dominant language
C++
Stars
402
Forks
251
Avg merge
1d 9h
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/graph

All issues in boostorg/graph

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.