Skip to content

cmake: Fix target_link_libraries against project targets #14597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

amyspark
Copy link
Contributor

These were supported for shared libraries, but for static libraries the link_with property was never populated with LINK_LIBRARIES or INTERFACE_LINK_LIBRARIES.

Fixes #13101

@amyspark amyspark requested a review from mensinda as a code owner May 13, 2025 01:17
@bonzini bonzini added this to the 1.8.1 milestone May 23, 2025
@bonzini bonzini added bug module:cmake Issues related to the cmake module, including cmake.subproject labels May 23, 2025
@eli-schwartz eli-schwartz modified the milestones: 1.8.1, 1.8.2 May 23, 2025
@nirbheek
Copy link
Member

@amyspark please rebase to fix CI

@bonzini
Copy link
Collaborator

bonzini commented May 26, 2025

CI is currently messed up pretty badly on the GitHub side...

These were supported for shared libraries, but for static libraries
the link_with property was never populated with `LINK_LIBRARIES` or
`INTERFACE_LINK_LIBRARIES`.

Fixes mesonbuild#13101
@amyspark amyspark force-pushed the add-support-for-cmake-target-link-dependencies branch from a464c42 to 6fcdf60 Compare May 29, 2025 17:44
@nirbheek nirbheek merged commit e6332b8 into mesonbuild:master Jun 3, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug module:cmake Issues related to the cmake module, including cmake.subproject
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmake: dependencies between CMake targets work only if the dependent target is imported
5 participants