Feature request: subdir option for cmake module?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 1.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 33
Description
Would it be possible to add a `subdir` kwarg to `cmake.subproject` to specify where a project's `CMakeLists.txt` file is? This would greatly simplify using CMake projects that have non-conventional project structures. The idea is that `subdir` would take a path relative to the root of the extracted source tree, so even `'.'` could be used if you wanted to explicitly tell meson that the CMake project is at the root.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the cmake.subproject entry point and trace how the extracted source tree is located and how its CMakeLists.txt is selected. The work is done when a subdir path relative to the extracted source root, including '.', selects the intended CMake project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100