add_project_dependencies()
Adds arguments to the compiler and linker command line, so that the given set of dependencies is included in all build products for this project.
Signature
(since 0.63.0)
# Adds arguments to the compiler and linker command line, so that the
void add_project_dependencies(
dep dependencies..., # The dependencies to add; if internal dependencies are included, they must not include any built object
# Keyword arguments:
language : array[str] [required] # Specifies the language(s) that the arguments should be
native : bool # A boolean specifying whether the arguments should be
)
Arguments
The
function accepts between 0 and infinity variadic
arguments (dependencies...) of type .dep
The dependencies to add; if internal dependencies are included, they must not include any built object.
The function add_project_dependencies()
accepts the following keyword arguments:
| Name | Type | Description | Tags |
|---|---|---|---|
language |
array[str] |
Specifies the language(s) that the arguments should be applied to. If an array of languages is given, the arguments are added to each of the corresponding compiler command lines. Note that there is no way to remove an argument set in this way. If you have an argument that is only used in a subset of targets, you have to specify it in per-target flags. |
|
native |
bool |
A boolean specifying whether the arguments should be
applied to the native or cross compilation. If |
(since 0.48.0)
|
The results of the search are