mesonbuild / mesonbuild/meson

Feature request: subdir option for cmake module?

Open
#13,601 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement module:cmake
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.