Configuring with `cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=geometry` fails

Open Beginner friendly
#1,503 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cmake, cpp
Domain
build-system

Research direction

The failure is in CMake configuration, so start with test/CMakeLists.txt, where the proposed set(__ignore__ Boost::interprocess) line would go. Reproduce by running cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=geometry from a Boost superproject checkout and read the linked CI log to see which dependency the scanner misses. Done when that configure command succeeds and the test targets still build.

Written by the indexing model from the issue text.

Description

cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=geometry fails because the superproject dependency scanner doesn't see the dependency on Interprocess as it's in the index subdirectory.

https://github.com/boostorg/cmake/actions/runs/41255567456/job/124698380439

The easiest way to fix that (that comes to mind) would be to add somewhere in test/CMakeLists.txt the dummy line

set(__ignore__ Boost::interprocess)
Dominant language
C++
Stars
517
Forks
237
Avg merge
7d 8h
Merged PRs (30d)
3

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/geometry

All issues in boostorg/geometry

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.