We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xmake (dev) will add includedirs, links, linkdirs and rpathdirs to target automatically if it's target deps is static/shared library.
dev
includedirs
links
linkdirs
rpathdirs
static
shared
Before:
target("library1") set_kind("static") add_files("*.c") add_headers("inc1/*.h") target("library2") set_kind("static") add_deps("library1") add_files("*.c") add_headers("inc2/*.h") add_includes("$(buildir)/inc1") target("test") set_kind("binary") add_deps("library2") add_includes("$(buildirs)/inc2") add_links("library2", "library1") add_linkdirs("$(buildir)")
Now:
target("library1") set_kind("static") add_files("*.c") add_headers("inc1/*.h") target("library2") set_kind("static") add_deps("library1") add_files("*.c") add_headers("inc2/*.h") target("test") set_kind("binary") add_deps("library2")
The text was updated successfully, but these errors were encountered:
This makes me recall Cascading Style Sheets 👍
Cascading Style Sheets
But, better to have a way to let users disable inheriting. To use or not use a feature should be decided by users
*{all:initial;}
Sorry, something went wrong.
@titansnow ok, I will consider it
We can also set inherit attribute to disable the default inheritance behavior in v2.1.6
inherit
add_deps("dep1", "dep2", {inherit = false})
No branches or pull requests
xmake (
dev
) will addincludedirs
,links
,linkdirs
andrpathdirs
to target automatically if it's target deps isstatic
/shared
library.Before:
Now:
The text was updated successfully, but these errors were encountered: