-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Question about args
library
#32
Comments
In CMake, I can add BUILD OPTION to prefer find_package over fetch_content. What do you think? |
@ArthurSonzogni That would be definitely helpful. Most of downstream distribution systems prefer using ports rather than fetching anything during the build. For |
Most of downstream distribution systems prefer using ports rather than fetching anything during the build. FTXUI depends on args via FetchContent. CMake 3.24 support FIND_PACKAGE_ARGS to allow installed packages to override fetch_content. My problem is that `taywee::args` is only exported when installed, but not directly when used as a subproject. This patch exports `taywee::args` so that the same name can be used in both cases. Bug:ArthurSonzogni/json-tui#32
Support building json-tui from external packages. Useful for distributions that want to package json-tui without using FetchContent. This relies on CMake FetchContent's FIND_PACKAGE_ARGS to try using find_package before falling back on FetchContent Bug:#32
Hello @barracuda156, I used the new cmake's Does the new solution works for you? |
@ArthurSonzogni Looks like everything is working now, thank you!
(No patches used from our side.) Could you make a new tag? (MacPort dislikes using commits quite a bit.) |
Could say why does it want to link to
args
when that is supposed to be a header-only library, and it does not install anything one can link to?Also, just removing that line seems to work fine, and
json-tui
builds normally and appears to work.P. S. We would like to build it against externally installed libraries, without using any bundled third-party stuff.
The text was updated successfully, but these errors were encountered: