Skip to content

Conversation

@kilo52
Copy link
Member

@kilo52 kilo52 commented Oct 24, 2025

Adds the DEPENDENCY_LINK_TARGETS parameter to dependency() CMake function.
This allows projects to define a list of CMake targets that when consuming the declared dependency the underlying project should link to. A project named e.g. myproject can link to targets of dependencies by using the CMake cache variable MYPROJECT_DEPENDENCIES_LINK_TARGETS, for example in a call to the target_link_libraries() function.

Allows projects to define a list of CMake targets that when consuming the
declared dependency the underlying project should link to. A project
named e.g. myproject can link to targets of dependencies by using the
CMake cache variable MYPROJECT_DEPENDENCIES_LINK_TARGETS, for example
in a call to the target_link_libraries() function.

Signed-off-by: kilo52 <[email protected]>
@kilo52 kilo52 self-assigned this Oct 24, 2025
@kilo52 kilo52 added Improvement Improvement of an existing feature Templates Changes in project source templates C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C labels Oct 24, 2025
@kilo52 kilo52 linked an issue Oct 24, 2025 that may be closed by this pull request
@kilo52 kilo52 merged commit 5bcf3b9 into master Oct 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C Improvement Improvement of an existing feature Templates Changes in project source templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Variable for List of Dependency Link Targets

2 participants