Skip to content
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

Support to export packages/options #1254

Closed
waruqi opened this issue Feb 24, 2021 · 0 comments
Closed

Support to export packages/options #1254

waruqi opened this issue Feb 24, 2021 · 0 comments

Comments

@waruqi
Copy link
Member

waruqi commented Feb 24, 2021

pr #1253

Export includedirs/linkdirs of packages/options

add_packages("pcre2", {public = true})
add_options("foo", {public = true})

Only export linkdirs/links of packages/options by default

add_packages("pcre2")
add_options("foo")

Related issues:

#1104
#1109
#1240

Example

add_rules("mode.debug", "mode.release")
add_requires("pcre2")

target("test")
    set_kind("shared")
    add_packages("pcre2", {public = true})
    add_files("src/test.cpp")

target("demo")
    add_deps("test")
    set_kind("binary")
    add_files("src/main.cpp")  -- we can uses pcre2 packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant