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

Add vcpkg installation instructions #225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PhoebeHui
Copy link

yajl is available as a port in VCPKG , documenting the install process here will help users get started by providing a single set of commands to build yajl, ready to be included in their projects.

VCPKG is a C++ library manager that simplifies installation for yajl and other project dependencies, we also test whether our library ports build in various configurations (dynamic, static) on various platforms (OSX, Linux, Windows: x86, x64, UWP, ARM) to keep a wide coverage for users.

I'm a maintainer for vcpkg, and here is what the port script looks like. We try to keep the library maintained as close as possible to the original library.

@CreatorSergey
Copy link

hi, @PhoebeHui!

i try to use vcpkg in cmake for yajl

find_package(yajl CONFIG REQUIRED)
target_link_libraries(my_project PRIVATE yajl_s)

but it is cant find package. Do you have some instructions to use yajl with cmake ?

@PhoebeHui
Copy link
Author

@CreatorSergey, sorry for late response!

Yajl doesn't export cmake config and target file, so you can't find the package via find_package, you can use find_path and find_library instead. See https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/installing-and-using-packages.md?plain=1#LL183C1-L183C1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants