mesonbuild / mesonbuild/meson

Meson not respecting config dependent generator expressions in INTERFACE_LINK_LIBRARIES from CMake dependencies.

Open
#8,232 13 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies module:cmake
Dominant language
Python
Stars
6.6k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
33

Description

Similar to `IMPORTED_LOCATION_`

If INTERACE_LINK_LIBRARIES contains generator expressions like, e.g.:
```
INTERFACE_LINK_LIBRARIES "\$<\$>:${_IMPORT_PREFIX}/lib/freetype.lib>;\$<\$:${_IMPORT_PREFIX}/debug/lib/freetyped.lib>
```
Meson has to extract the correct dependency depending on the configuration. Basically the same logic has for `IMPORTED_LOCATION_` needs to be used.

cc @mensinda

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

Locate the existing handling for IMPORTED_LOCATION_ and the CMake dependency import path for INTERFACE_LINK_LIBRARIES. Trace how the shown generator expressions are evaluated for the active configuration, then verify that debug and non-debug configurations select the corresponding library dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.