Fix CMake build/tests

Open
#359 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp

Research direction

Inspect build/CMakeLists.txt, the root CMakeLists.txt, and test/CMakeLists.txt, then compare them with the linked WIP branch. Read the BoostTest Module referenced in the issue and determine how the test definitions should use it. Done means a single CMake configuration can build the library and its tests successfully.

Written by the indexing model from the issue text.

Description

I tried creating and running a CMake build via the build/CMakeLists.txt and also by adding an include_subdirectory(test) to the root CMakeLists.txt and both are not able to build the project.

I would strongly suggest to remove the build/CMakeLists.txt and have only a single (the root) file to build the library. As part of the overall effort to add CMake support to Boost, the test/CMakeLists.txt can then focus on defining tests and make use of the `BoostTest Module instead of trying to come up with a custom solution.

My WIP branch is at https://github.com/Flamefire/test/tree/cmake Currently I tried to support both CMakeLists but that is not feasible.

Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

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

All issues in boostorg/test

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.